Perl shell-out to script dunna work. Works on command line. Why?
I've got a perl script which executes:
my $retval = `sudo /usr/bin/firewall`;
... and comes back with a bunch of errors. First is:
/sbin/ipchains: host/network `-j' not found
If I run 'sudo /usr/bin/firewall' at the bash prompt, no problem. No errors.
This is the line in my bash script which works when launched at the command prompt, but not with launched perl backticks:
/sbin/ipchains -A input -i $LOOPBACK_INTERFACE -j ACCEPT
Any help greatly appreciated.