Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: perl and shell

by sen (Hermit)
on Oct 31, 2007 at 11:54 UTC ( #648226=note: print w/replies, xml ) Need Help??


in reply to perl and shell

Hi, the redirect options are:

scriptname >filename redirects the output of scriptname to file filename. Overwrite filename if it already exists.

command &>filename redirects both the stdout and the stderr of command to filename.

command >&2 redirects stdout of command to stderr.

scriptname >>filename appends the output of scriptname to file filename. If filename does not already exist, it is created.

If you need the ouput, redirect to file, else redirect to null

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://648226]
help
Chatterbox?
[Eily]: congrats Discipulus :)
[Eily]: (somehow I just typed "cong" and chrome proposed to complete the message :D )
[shmem]: Discipulus: well, a node with just one glaring truth on it is most easily upvoted ;-)
[Discipulus]: i'd like to be the vote fairy just one month.. ;=)

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-04-26 11:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (473 votes). Check out past polls.