Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Strange behaviour - Net::Telnet

by PhilHibbs (Hermit)
on Apr 15, 2005 at 10:31 UTC ( #448120=note: print w/ replies, xml ) Need Help??


in reply to Strange behaviour - Net::Telnet

Firstly, running ps -ef | grep [r]un_ct (or any other regex that does not match itself) instead of ps -ef | grep run_ct | grep -v grep will save you a process.

Secondly, maybe the waitfor is eating the first ps echo. castaway points out in the CB that cmd eats the echo, but print does not, so you should expect the echo, not be surprised by it.

Finally, if you use a Perl regex in your script to remove the ps command, then it will also remove the ps echo.


Comment on Re: Strange behaviour - Net::Telnet
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2014-12-20 23:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (99 votes), past polls