#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include <signal.h>
#include <stdio.h>
Go to the source code of this file.
Functions | |
int | G_system (char *command) |
run a shell level command |
int G_system | ( | char * | command | ) |
run a shell level command
The shell level command is executed. Interrupt signals for the parent module are ignored during the call. Interrupt signals for the command are enabled. The interrupt signals for the parent are restored to their previous settings upon return. G_system(~) returns the same value as system(~), which is essentially the exit status of the command. See UNIX manual system(1) for details.
command |
Definition at line 46 of file system.c.
References G_warning(), and NULL.
Referenced by G_ask_datum_name().