Main Page | Data Structures | File List | Globals

libgu/gu_run.c File Reference

#include "before_system.h"
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/wait.h>
#include <errno.h>
#include <stdarg.h>
#include "gu.h"
#include "global_defines.h"

Functions

int gu_runl (const char myname[], FILE *errors, const char *progname,...)
 Run a command.


Detailed Description


Function Documentation

int gu_runl const char  myname[],
FILE *  errors,
const char *  progname,
... 
 

Run a command.

This function provides a simple way to run a command and wait for it to complete. This is useful for commands which need to run some other command to do a part of the work. It isn't hard to write such code, but with proper testing of status returned by wait() it can get a little long. Also, centralizing it in this function will allow us to use spawn() in the future.


Generated on Fri Feb 20 15:17:52 2004 for PPR Libraries by doxygen 1.3.5