version 1.17, 2003/11/10 22:35:07 |
version 1.18, 2004/09/14 22:21:57 |
|
|
#include <unistd.h> |
#include <unistd.h> |
|
|
void usage(void); |
void usage(void); |
int system(const char *); |
int mysystem(const char *); |
|
|
int |
int |
main(int argc, char *argv[]) |
main(int argc, char *argv[]) |
|
|
if (debug) |
if (debug) |
(void)printf("%s\n", c); |
(void)printf("%s\n", c); |
else |
else |
if (system(c)) |
if (mysystem(c)) |
rval = 1; |
rval = 1; |
} |
} |
|
|
|
|
* variable as the shell to execute. |
* variable as the shell to execute. |
*/ |
*/ |
int |
int |
system(const char *command) |
mysystem(const char *command) |
{ |
{ |
static char *name, *shell; |
static char *name, *shell; |
pid_t pid; |
pid_t pid; |