[lug] Lame server on?

Hugh Brown hugh at vecna.com
Thu Dec 6 10:27:22 MST 2001


Usually there is a facility in syslog that allows you to redirect cron
output to a different log.

I have these lines in my /etc/syslog.conf

# Log cron stuff
cron.*                                                  /var/log/cron


2>&1 says redirect file descriptor 2 to file descriptor 1, namely send
stderr to stdout (which has been redirected to /dev/null).

Hugh



On Thu, 2001-12-06 at 12:06, Paul Bille wrote:
> > You could probably find it in crontab or anacron config and change it to
> something like:
> > /sbin/rmmod -as > /dev/null 2>&1
> 
> All good suggestions.
> 
> I found rmmod in /etec/cron.d/kmod.  Sending the output to /dev/null might
> do the trick.
> 
> I don't recognize the syntax of the following argument 2>&1.  I presume the
> & runs the process in the background.  I'm not certain if the > is another
> redirection or if it signifies another prompt.
> 
> Thanks,
> Paul
> http://bille.cudenver.edu/author
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
-- 
------------------------------------
System Administrator/Unix Consultant
hugh at vecna.com
Vecna Technologies, Inc
6525 Belcrest Rd, Suite 612
Hyattsville MD, 20782
301.864.7253
http://www.vecna.com





More information about the LUG mailing list