Looks like a job more suited for BASH. And for password use Public Keys and ssh-agent.
Just because you know how to use a hammer doesn't mean it's the best tool to make a hole.#!/bin/bash script=/var/tmp/run.sh runScript() { local host=$1 local file=$2 scp $file root@$host:$script ssh root@$host "bash $script" ssh root@$host "rm -f $script" } host=192.168.10.32 cat <<%%SCRIPT%% #!/bin/bash source /home/venkatas/.cshrc setenv DISPLAY linux37:0 bsub -q linux64_idc_1g xterm & %%SCRIPT%% >$script runScript $host $script
In reply to Re: Problem while using Net::SSH::Perl module
by mickep76
in thread Problem while using Net::SSH::Perl module
by venkatas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |