diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-05-11 09:01:35 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-05-11 09:01:35 +0000 |
| commit | 59927d47cff11a56bd1db5bdc53f7f075aaae486 (patch) | |
| tree | 34e503af0f691568eeb519cf19b98c83a928ee24 /usr.sbin/sade/command.c | |
| parent | 8a5f152db30b947fd733b2ea1c4b19cd5e74d8f1 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/sade/command.c')
| -rw-r--r-- | usr.sbin/sade/command.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/sade/command.c b/usr.sbin/sade/command.c index 37b3a7a991f1..a143be014e9a 100644 --- a/usr.sbin/sade/command.c +++ b/usr.sbin/sade/command.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: install.c,v 1.10 1995/05/07 23:37:33 jkh Exp $ + * $Id: command.c,v 1.1 1995/05/08 06:08:27 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -113,12 +113,14 @@ command_sort(void) void command_execute(void) { - int i, j; + int i, j, ret; for (i = 0; i < numCommands; i++) { for (j = 0; j < commandStack[i]->ncmds; j++) { msgNotify("Executing command: %s", commandStack[i]->cmds[j]); - (void)vsystem(commandStack[i]->cmds[j]); + ret = system(commandStack[i]->cmds[j]); + msgDebug("Command: %s returns status %d\n", + commandStack[i]->cmds[j], ret); } } } |
