Added debug output for shell execution

SVN revision: 1768
This commit is contained in:
2006-12-05 14:07:40 +00:00
parent b49b71c702
commit 7ef4b06936
+7
View File
@@ -1146,6 +1146,13 @@ int subst_shell(char *cmd, char *result, int size)
/* execute shell with redirection to /tmp/elog-shell */
sprintf(str, "/bin/sh -c \"%s\" > /tmp/elog-shell 2>&1", cmd);
if (verbose) {
efputs("Going to execute: ");
efputs(str);
efputs("\n");
}
system(str);
exit(0);
}