Networking Forums

Networking Forums > Computer Networking > Linux Networking > Problem with Cron script in mailserver

Reply
Thread Tools Display Modes

Problem with Cron script in mailserver

 
 
Doug Laidlaw
Guest
Posts: n/a

 
      07-17-2004, 06:17 AM
I have installed a procmail spam recipe. It has a cron script to run daily,
and a script which is supposed to be run every 5 minutes, but in my case
could just as conveniently be run hourly. I have put the following in
/etc/cron.hourly:

!/bin/tcsh
# Updates accept-list
su -l doug -c "~doug/.PROCMAIL/scripts/procmail-list-update.cron" >&
/dev/null

This is a copy of the daily script, with only the name of the script to run
changed. The daily one runs OK, but the hourly one gives me an error
message:

MANPATH: Undefined variable.
run-parts: /etc/cron.hourly/accept_list.cron exited with return code 1

The variable MANPATH is not used in either the above script or in the bash
script that it calls. It is set to

:/usr/lib/jdk-1.4.2_01/man:/usr/lib/jdk-1.4.2_01/man

What have I missed? Using Mandrake 9.2.

Doug.
--
ICQ Number 178748389. Registered Linux User No. 277548.
Happiness is nothing more than good health and a bad memory.
- Albert Schweitzer.

 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      07-17-2004, 12:27 PM
On Sat, 17 Jul 2004 16:17:46 +1000, Doug Laidlaw wrote:
> I have installed a procmail spam recipe. It has a cron script to run daily,
> and a script which is supposed to be run every 5 minutes, but in my case
> could just as conveniently be run hourly. I have put the following in
> /etc/cron.hourly:
>
> !/bin/tcsh


#! /bin/tcsh
 
Reply With Quote
 
Doug Laidlaw
Guest
Posts: n/a

 
      07-17-2004, 02:08 PM
Bit Twister wrote:

> On Sat, 17 Jul 2004 16:17:46 +1000, Doug Laidlaw wrote:
>> I have installed a procmail spam recipe. It has a cron script to run
>> daily, and a script which is supposed to be run every 5 minutes, but in
>> my case
>> could just as conveniently be run hourly. I have put the following in
>> /etc/cron.hourly:
>>
>> !/bin/tcsh

>
> #! /bin/tcsh


Tnx BT. I was just about to "kick myself", but the # is there. Must have
got missed with the copy & paste.

Doug.
--
ICQ Number 178748389. Registered Linux User No. 277548.
Success usually comes to those who are too busy to be looking for it.
- Henry David Thoreau.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cygwin problem with cron and networked drives ambroze Linux Networking 5 06-29-2006 08:39 PM
cygwin CRON problem one1alpha1 Linux Networking 0 01-04-2005 11:36 PM
iproute & 2 ISP's & mailserver D. Rodic Linux Networking 0 09-21-2004 11:17 AM
iproute & 2 ISP's & mailserver fdafa Linux Networking 0 09-21-2004 11:12 AM
Cygwin problem with 'cron' and networking rhubarbe Linux Networking 1 08-29-2003 06:59 AM



1 2 3 4 5 6 7 8 9 10 11