Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Control not coming back to perl script

by parthodas (Acolyte)
on Mar 15, 2016 at 11:09 UTC ( [id://1157786]=note: print w/replies, xml ) Need Help??


in reply to Control not coming back to perl script

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1157786]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-20 06:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found