Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: crontab question

by nardo (Friar)
on Jul 24, 2001 at 18:31 UTC ( [id://99341]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: crontab question
in thread crontab question

That would be 2>/errola.txt rather than &2>/errola.txt, the & is used when redirecting one file descriptor to another: 2>&1 redirects stderr to stdout. The easiest way to remember where the & goes is that: &2>1 could either redirect to filedescriptor 1 or to a file named '1' and a file named '1' isn't that unusual a name while 2>&1 is either going to redirect to filedescriptor 1 or a file named '&1' and it's unlikely that someone will want a file named '&1' so that is the way to do it. If you ever want to redirect to a file named '&1' you could: 2>'&1' but I can't think of a situation where you would ever want a file named &1, but then again I can't think of a situation where someone would want an album by N*Sync and I was totally wrong there.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found