kudithipudi
IS-IT--Management
Hello Guys,
I am trying to run a command from perl using the backticks (``) as such
$COMMANDOUTPUT = `plink.exe -ssh -pw password root\@$FQDNSERVER \"service jakartaservice start\"`;
This command conntects to a remote server via SSH and then executes a command (service jakartaservice start) on the remote server. The problem I am having is that the jakartaservice does not return "control" to the console completely after starting. So my perl script is stuck near the $COMMANDOUTPUT. I was wondering if there was any way, I can kill the process after some time after launching it.
Any help is appreciated. Thanks much.
- V.
I am trying to run a command from perl using the backticks (``) as such
$COMMANDOUTPUT = `plink.exe -ssh -pw password root\@$FQDNSERVER \"service jakartaservice start\"`;
This command conntects to a remote server via SSH and then executes a command (service jakartaservice start) on the remote server. The problem I am having is that the jakartaservice does not return "control" to the console completely after starting. So my perl script is stuck near the $COMMANDOUTPUT. I was wondering if there was any way, I can kill the process after some time after launching it.
Any help is appreciated. Thanks much.
- V.