Article View: csu.unix.linux
Article #6Re: Crontab errror
From: Adam Carheden
Date: Sun, 06 Sep 1998 00:00
Date: Sun, 06 Sep 1998 00:00
44 lines
2427 bytes
2427 bytes
Thanks a lot, it works great now with the command:
0 0 * * * /usr/bin/local/elm -s "Daily Comics" carheden <
/m/j/carheden/comics.txt
(Sorry, I like 0's, unless you have a good reason why they're bad :)
Unfortunatly, I also get a message from the daemon (this refers to the
cron program, right):
Sending mail...
Mail sent!
*************************************************
Cron: The previous message is the standard output
and standard error of one of your cron commands.
A little help on redirecting stdout. Can I just append 2>/dev/null?
This will just send elm's screen output there, right, not my message.
TIA
Mike Loseke wrote:
> You should give the full path to the executable and to the file as well.
> You should be able to do a "which elm" at a shell prompt to find out
> exactly where it is. It might be in /usr/bin/elm or /usr/local/bin/elm or
> someplace like that. You'll have to add the whole path in the crontab as
> crond doesn't know about non-standard paths, or read your startup files,
> to find binaries.
>
> For instance:
>
> 1 0 * * * /usr/local/bin/elm -s "Daily Comics" username < /path/to/file
>
> (I don't like using all zero's in a crontab.)
>
> --
> Mike Loseke | Users are simply nature's way of
> mike@verinet.com | keeping me from hogging the processor.
--
Adam
carheden@holly.colostate.edu
http://holly.ColoState.edu/~carheden
Technical Details
Message-ID:
<35F2B6CC.969A402@holly.colostate.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35F010FF.F76B604B@holly.colostate.edu> <6spmc6$sif$1@bamboo.verinet.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 153cb4,2fc132920a18f170 X-Google-Attributes: gid153cb4,public X-Google-Thread: 1159f7,2fc132920a18f170 X-Google-Attributes: gid1159f7,public X-Google-Thread: 117ddd,2fc132920a18f170 X-Google-Attributes: gid117ddd,public X-Google-Thread: 148df6,2fc132920a18f170 X-Google-Attributes: gid148df6,public From: Adam Carheden <carheden@holly.colostate.edu> Subject: Re: Crontab errror Date: 1998/09/06 Message-ID: <35F2B6CC.969A402@holly.colostate.edu> X-Deja-AN: 388432919 Content-Transfer-Encoding: 7bit References: <35F010FF.F76B604B@holly.colostate.edu> <6spmc6$sif$1@bamboo.verinet.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@cactus.verinet.com X-Trace: cactus.verinet.com 905098931 9961 199.45.181.218 (6 Sep 1998 16:22:11 GMT) Organization: Verinet Communications Mime-Version: 1.0 NNTP-Posting-Date: 6 Sep 1998 16:22:11 GMT Newsgroups: csu.unix.linux,csu.cs,csu.unix,csu.cs.systems