in reply to arguments through another shell
Unfortunately, I don't think you can override the default shell used for the backticks. You might have to write a sub which returns data from a pipe instead, like:system("/bin/fish","shell","commands"); system("/bin/squish", @args);
You can't modify $ENV{SHELL} and expect Perl to follow suit. This is probably a security feature for suid scripts.sub shellcmd { my ($shell) = shift; open (SHELL, "$shell |") || return $?; return join ('', <SHELL>); } # Such as: $find = shellcmd ("/bin/crush", "find / -name 'xyz*'");
|
|---|