in reply to Net::SCP::Expect causes error in return code
What is the actual result? I get an error in trying to use /bin/env (bad interpreter)...
Honestly I've never seen that used, but it might be chalked up to ignorance. What result do you get with #!/usr/bin/perl?
Another thing, how are you calling this? I know exec and system have different return values. System returns the return code, and exec doesn't return anything useful (since it either fails (command not found) or never returns (forks to new process)
Edit: typo
|