system.c File Reference

#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>

Include dependency graph for system.c:

Go to the source code of this file.

Functions

int G_system (char *command)
 run a shell level command


Function Documentation

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.

Parameters:
command 
Returns:
int

Definition at line 46 of file system.c.

References G_warning(), and NULL.

Referenced by G_ask_datum_name().


Generated on Sun Apr 6 17:32:26 2008 for GRASS by  doxygen 1.5.5