Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: how to get back a exit status using Net::Telnet

by belden (Friar)
on Jan 18, 2005 at 00:31 UTC ( [id://422854]=note: print w/replies, xml ) Need Help??


in reply to how to get back a exit status using Net::Telnet

If you're logging in to a Unix(-like) machine, you can ask the shell the exit status of your last command. If you are using csh, then you'll need to echo $status. If it's bash, ksh, or sh, then echo $?. If those don't work, then you can always read the man page for your shell to find out how to get this info from your shell.

If you are logging in to a Windows machine via telnet, then you may need to make your remote program print "exiting status 2" just before exiting.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-24 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found