There are many ways you can accomplish this. To name a few:
- addme.pl doesn't output any error messages.
Instead, it just exits with a particular value. signup.pl captures the exit code, and uses a lookup
table to see what happened.
- You'd use IPC::Open3 to open addme.pl,
and read from its standard error what the error is.
- $err = qx /addme.pl 2>&1/;
Abigail | [reply] |
Even better than a reasonable explanation would be some source code. In general, running a perl script with setuid root is a serious security risk, especially if you allow a web user to pass any information to it. I wouldn't compound the risk by returning any output from that script, because they might be able to get sensitive information that way. | [reply] |