version 1.1, 1999/12/03 07:39:09 |
version 1.4, 2002/07/24 08:00:09 |
|
|
/* Conditionally execute a command based if the file argv[1] doesn't exist */ |
/* Conditionally execute a command based if the file argv[1] doesn't exist */ |
/* Except for execvp, we stick to ANSI C. */ |
/* Except for execvp, we stick to ANSI C. */ |
# include "gcconfig.h" |
# include "private/gcconfig.h" |
# include <stdio.h> |
# include <stdio.h> |
|
# include <stdlib.h> |
|
# include <unistd.h> |
|
|
int main(argc, argv, envp) |
int main(argc, argv, envp) |
int argc; |
int argc; |
|
|
return(0); |
return(0); |
} |
} |
printf("^^^^Starting command^^^^\n"); |
printf("^^^^Starting command^^^^\n"); |
|
fflush(stdout); |
execvp(argv[2], argv+2); |
execvp(argv[2], argv+2); |
exit(1); |
exit(1); |
|
|