I have a problem running Perl script through ssh.
My script is on remote linux machine and I want to execute it from another machine using ssh.
When I login with ssh ( ssh root@machine_name and provide root password) and run the perl script, it works.
But if I want to run the script through same command.( ssh root@machine_name perl /research-sar/sarexec.pl start /research-sar/param.txt /research-sar/logs/log.txt 2 )
These are all the parameters to the script.The it takes the password of root , after that it doesnt return to command prompt.
If I run any linux-command other than perl script it runs properly and return to command line.
Please find the solution.