Problems? Is your data what you think it is? | |
PerlMonks |
Re: Control not coming back to perl scriptby parthodas (Acolyte) |
on Mar 15, 2016 at 11:09 UTC ( [id://1157786]=note: print w/replies, xml ) | Need Help?? |
Hi, Thanks for the reply. I have not tried routing the output to null, > /dev/null. I'll test it from my side and update later. I thought that the control might not return. So, I put all the commands in temp file, $mycmdfile. Then I used batch mode to run the command. It looks something like this -- my @lines = qx/"D:\\plink -ssh $myhash{ROLE_ACCNT}\@$myhash{OSESSRVRS} -i $myhash{KEY} -t -batch < $mycmdfile"/;Thanks, Partho
In Section
Seekers of Perl Wisdom
|
|