1 /* 2 * shell_cmd() takes a shell command after %<character> substitutions. The 3 * command is executed by a /bin/sh child process, with standard input, 4 * standard output and standard error connected to /dev/null. 5 * 6 * Diagnostics are reported through syslog(3). 7 * 8 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. 9 */ 10 11#ifndef lint 12static char sccsid[] = "@(#) shell_cmd.c 1.5 94/12/28 17:42:44"; 13#endif 14 15/* System libraries. */ 16 17#include <sys/types.h> 18#include <sys/param.h>
| 1 /* 2 * shell_cmd() takes a shell command after %<character> substitutions. The 3 * command is executed by a /bin/sh child process, with standard input, 4 * standard output and standard error connected to /dev/null. 5 * 6 * Diagnostics are reported through syslog(3). 7 * 8 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. 9 */ 10 11#ifndef lint 12static char sccsid[] = "@(#) shell_cmd.c 1.5 94/12/28 17:42:44"; 13#endif 14 15/* System libraries. */ 16 17#include <sys/types.h> 18#include <sys/param.h>
|