Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: how can I redirect the output of a program and get the exit code too?

by EvdB (Deacon)
on Jun 22, 2004 at 11:15 UTC ( #368677=note: print w/replies, xml ) Need Help??

in reply to how can I redirect the output of a program and get the exit code too?

If you are after the exit code then I am assuming that the redirection you have in mind is on the terminal. This is not really a perl thing and dependent on your shell. Try typing help and going from there. Below are a few pointers for bash on linux though:
$ perl > /dev/null # Send all nonwarnings to bit bin $ perl 2> errors.txt # send errors to a file

--tidiness is the memory loss of environmental mnemonics

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://368677]
[planetscape]: sleep well, Corion
[stonecolddevin]: erix seems pretty good, i listened to "So Many Roads" and it was nice. Not everyone's cup of tea but this guy can absolutely shred, he and the guy from Mastodon are definitely up there: https://www. v=VzhMkSN9dQc
[erix]: ha, good stuff - loud and fast...
[stonecolddevin]: here's some Mastodon for when you have 13 minutes to have your mind blown: https://www. v=4pvfQtUhtNE
[karlgoethebier]: goes to Brownsville one more time..

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2017-06-22 21:48 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (531 votes). Check out past polls.