bash: check for network

Corey Edwards tensai at zmonkey.org
Thu Apr 14 17:20:07 MDT 2005


On Thu, 2005-04-14 at 16:27, Benjamin Schmuhl wrote:
> C. Ed Felt wrote:
> 
> > If you add ">> /pathToSomeLogFile" or even "> /pathToSomeLogFile" (if 
> > you don't want to track this) at the end of your cron command you can 
> > avoid those annoying emails.  This makes cron save what it normally 
> > emails you to a log file.
> 
> Or for those who don't care to know, tack the following on to the end:
> 
>  >/dev/null 2>&1

Which can be shortened to &>/dev/null.

Corey

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://plug.org/pipermail/plug/attachments/20050414/88601fa4/attachment.bin 


More information about the PLUG mailing list