redirecting output in cron job not working

Cameron Simpson cs at zip.com.au
Tue May 6 00:36:52 UTC 2008


On 05May2008 22:01, g <geleem at bellsouth.net> wrote:
| -----BEGIN PGP SIGNED MESSAGE-----
| Hash: SHA1
| 
| Cameron Simpson wrote:
| >   /root/check_mounts.sh /mnt/m 10.5.0.100:/mnt/host-m/ >SOME_LOGFILE 2>&1
| 
| excuse curiousness, should there not be a '>>' in there?

Probably, yes, if he wants an accumulating log.
Alternatively, it can be convenient to make a "log per day" (or
whatever).

Thanks for pointing that out.
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

Windows NT crashed.
I am the Blue Screen of Death.
No one hears your screams.
- Haiku Error Messages http://www.salonmagazine.com/21st/chal/1998/02/10chal2.html




More information about the fedora-list mailing list