J
jdenman
I have a perl script running on a server - it runs the following
command: ssh2 <externalServer> -l <username> \"perl <perlScript>\"")
&& HandleError ("Unable to finish perl script: <perlScript>
where <externalServer> is an external server (located elsewhere),
<username> is the username I'm using to log into the externalServer,
and <perlScript> is the name of the perlScript on the externalServer I
want to run.
The perlScript actually runs fine on the external server, but on my
main server I get the Error: "Unable to finish perl script" printed on
screen, as if it had failed. Watching the progress through a command
line I can see everything as it happens, and it looks just
fine...however ssh2 is not exiting properly so that my original perl
script will continue to run, rather than breaking. I've also tried '||
die("Unable to finish perl script")' and got the same result.
Suggestions?
command: ssh2 <externalServer> -l <username> \"perl <perlScript>\"")
&& HandleError ("Unable to finish perl script: <perlScript>
where <externalServer> is an external server (located elsewhere),
<username> is the username I'm using to log into the externalServer,
and <perlScript> is the name of the perlScript on the externalServer I
want to run.
The perlScript actually runs fine on the external server, but on my
main server I get the Error: "Unable to finish perl script" printed on
screen, as if it had failed. Watching the progress through a command
line I can see everything as it happens, and it looks just
fine...however ssh2 is not exiting properly so that my original perl
script will continue to run, rather than breaking. I've also tried '||
die("Unable to finish perl script")' and got the same result.
Suggestions?