Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Net::Telnet :: How to check for the success of 'cmd'

by phydeauxarff (Priest)
on Oct 09, 2003 at 23:55 UTC ( #298146=note: print w/replies, xml ) Need Help??


in reply to Net::Telnet :: How to check for the success of 'cmd'

have you tried using getlines() after your $t->cmd to see more of what is being returned?

You might also check out print() as an alternative to cmd() as outlined in the net::telnet documentation.

As a last resort if you aren't getting the results you expect, I have always found dump_log() to be a good, good friend.

  • Comment on Re: Net::Telnet :: How to check for the success of 'cmd'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://298146]
help
Chatterbox?
[marto]: I had a feeling I'd regret looking up the definition of 'soyboy'
[Veltro]: usemodperl Maybe it is the way you talk? 'Soy boys', 'old ladies' and what is even a tgimer...
usemodperl is venting, duh?
[usemodperl]: that was a typos, dumbass
[marto]: usemodperl I guess that depends on what you mean by a safe space, since many people seem to have the impression a safe space allows them to do/say whatever they feel like, without question or critque
[marto]: 'typos'->'typo'
[usemodperl]: it's like you guys are retarded or something, no sense of humor? autism?
[usemodperl]: take things too literally, nothing is funny, everyhting must be perfect, or else, SCOLD SCOLD SCOLD, haha
[Veltro]: usemodperl I think you are offensive right now.
[marto]: people are very defnsive about their bad ideas behaviour' :P

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2018-06-24 15:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?