system.c File Reference

#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "gis.h"
#include "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 fprintf(), and NULL.

Referenced by G_ask_datum_name(), G_ask_datum_params(), and G_remove().


Generated on Sat Jul 22 22:06:37 2006 for GRASS by  doxygen 1.4.7