00001 /* 00002 * execute a shell script 00003 * 00004 * Changes: 00005 * 00006 * 05/04/94 (seiwald) - async multiprocess interface 00007 */ 00008 00009 void execcmd( 00010 char *string, 00011 void (*func)( void *closure, int status ), 00012 void *closure, 00013 LIST *shell ); 00014 00015 int execwait(); 00016 00017 # define EXEC_CMD_OK 0 00018 # define EXEC_CMD_FAIL 1 00019 # define EXEC_CMD_INTR 2