in reply to execute remote perl script via ssh
Have you looked at the values of $ssh_user, $hostname, and $user via e.g. Data::Dumper? Do you know whether ssh.exe is always in the PATH? Also, you should definitely be using a module to run external commands more safely, for example in this case I think IPC::Run3 might be appropriate (more info and sample code here). At the very least, use Win32::ShellQuote to build the command line.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: execute remote perl script via ssh
by vinoth.ree (Monsignor) on Jul 26, 2020 at 12:31 UTC | |
by vinoth.ree (Monsignor) on Aug 10, 2020 at 19:48 UTC |