🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: csu.unix.linux
Article #5

Re: Crontab errror

#5
From: Mike Loseke
Date: Fri, 04 Sep 1998 00:00
34 lines
2138 bytes
Thus spake <carheden@holly.colostate.edu>:
>My holly crontab gave me an error this morning.  Last night I added the
>line:
>
>0 0 * * * elm -s "Daily Comics" carheden <comics.txt
>
>to mail myself the URL's of my favortie comics contained in the file
>comics.txt in my home directory.  This line works just fine from the
>command line, but my crontab gave me the error:
>
>bsh: elm: not found
>
>*************************************************
>Cron: The previous message is the standard output
>      and standard error of one of your cron commands.
>
>Any ideas of how to fix this would be appreciated.  Thanks.

 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.
Technical Details
Message-ID: <6spmc6$sif$1@bamboo.verinet.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35F010FF.F76B604B@holly.colostate.edu>

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: 148df6,2fc132920a18f170
X-Google-Attributes: gid148df6,public
X-Google-Thread: 1159f7,2fc132920a18f170
X-Google-Attributes: gid1159f7,public
X-Google-Thread: 117ddd,2fc132920a18f170
X-Google-Attributes: gid117ddd,public
From: mike@bamboo.verinet.com (Mike Loseke)
Subject: Re: Crontab errror
Date: 1998/09/04
Message-ID: <6spmc6$sif$1@bamboo.verinet.com>
X-Deja-AN: 387977050
References: <35F010FF.F76B604B@holly.colostate.edu>
X-Complaints-To: usenet@cactus.verinet.com
X-Trace: cactus.verinet.com 904944839 15533 204.144.246.3 (4 Sep 1998 21:33:59 GMT)
Organization: Disco Pants and Haircuts
NNTP-Posting-Date: 4 Sep 1998 21:33:59 GMT
Newsgroups: csu.unix.linux,csu.cs,csu.unix,csu.cs.systems