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