17 #include <grass/config.h> 
   22 #include <sys/types.h> 
   26 #include <grass/gis.h> 
   27 #include <grass/glocale.h> 
   58     RETSIGTYPE(*sigint) ();
 
   60     RETSIGTYPE(*sigquit) ();
 
   63     sigint = 
signal(SIGINT, SIG_IGN);
 
   65     sigquit = 
signal(SIGQUIT, SIG_IGN);
 
   73     _spawnlp(P_WAIT, 
"cmd.exe", 
"cmd.exe", 
"/c", command, 
NULL);
 
   76     if ((pid = fork()) == 0) {
 
   80         execl(
"/bin/sh", 
"sh", 
"-c", command, 
NULL);
 
   85         G_warning(_(
"Can not create a new process!"));
 
   89         while ((w = wait(&status)) != pid && w != -1) ;
 
G_warning("category support for [%s] in mapset [%s] %s", name, mapset, type)
int G_system(const char *command)
Run a shell level command.