Complete.Org: Mailing Lists: Archives: discussion: January 1999:
Re: [aclug-L] Crontab entry
Home

Re: [aclug-L] Crontab entry

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: aclug-L@xxxxxxxxxxxx
Subject: Re: [aclug-L] Crontab entry
From: Steven Saner <ssaner@xxxxxxxxxxxxx>
Date: Wed, 20 Jan 1999 11:48:12 -0600
Reply-to: aclug-L@xxxxxxxxxxxx

On Wed, Jan 20, 1999 at 11:19:55AM -0600, Todd_Lundstedt@xxxxxxxxxxxxxxx wrote:
> 
> We have several crontab entries that look like this (this is AIX, but it
> should be pretty similar, eh?)...
> 
> 5 * * * * /path/command >/path/output 2>&1
> 
> I understand this will run "command" every day at 00:05, redirect the
> standard output to /path/output (ie /dev/null or some file).  The "2>"
> redirects the error output to a path similar to ">", in these cases it
> redirects to "&1".  What is "&1" representing????


It duplicates the file descripter 1 (stdout) onto file descripter
2. Therefore, both stdout and stderr get redirected to the file
/path/output. I pretty sure that's right. Do a man bash to read all about it.

By the way, the crontab entry will run at 5 minutes after each
hour. To run only at 00:05, you would need:

5 0 * * * ....


-- 
==================================================================
Steven Saner                            SouthWind Internet Access, Inc.
ssaner@xxxxxxxxxxxxx                    Technical Support
http://www2.southwind.net/~ssaner       support@xxxxxxxxxxxxx
                                        http://www.southwind.net
                                        263-7963 Wichita  (800)525-7963

---
This is the Air Capital Linux Users Group discussion list.  If you
want to unsubscribe, send the word "unsubscribe" to
aclug-L-request@xxxxxxxxxxxx.  If you want to post to the list, send your
message to aclug-L@xxxxxxxxxxxx.



[Prev in Thread] Current Thread [Next in Thread]