I am using the following command in a perl script to run a shell script with input parameter that resides in a particular folder of a different server.
system('sshpass -p password ssh user@hostname "cd /folder1/fol2; ./test.sh $param1 $param2;"');
But it seems that the input parameter is not getting considered. Can anyone help on this please?