Serialmail won't run from cron

1999-07-02 Thread Eric Dahnke

Hello,

I'm using serialmail-70 over a ppp link for outgoing mail on a linux
box. From the ip-up scripts it runs perfectly. However, if the conection
stays up, I call serialmail from a crontab on the hour.

I have the path to tcpclient set as a system wide path, and call
serialmail from the crontab as root. Neither serialmail nor fetchmail
run when called from the crontab if they are currently running.

When called from the crontab, syslog always spits one (or both) of the 2
following errors:

Jul  2 10:00:02 gateway serialmail: 930920402.294743 maildirserial:
fatal: unabl
e to get scanner status: no child processes  

Jul  2 11:00:01 gateway serialmail: 930924001.911220 maildirserial:
fatal: unabl
e to run tcpclient: file does not
exist 

Anyone?



Cheers - eric

+ + + + + + + + + + + + + + + + + + + +
Spark Sistemas E-mail
   - presentado por IWCC Argentina S.A.
   Tel: 4702-1958
   e-mail: [EMAIL PROTECTED]
+ + + + + + + + + + + + + + + + + + + +



Re: Serialmail won't run from cron

1999-07-02 Thread Dave Sill

Eric Dahnke [EMAIL PROTECTED] wrote:

I'm using serialmail-70 over a ppp link for outgoing mail on a linux
box. From the ip-up scripts it runs perfectly. However, if the conection
stays up, I call serialmail from a crontab on the hour.

Smells like an environment difference.

I have the path to tcpclient set as a system wide path,

What's that?

and call serialmail from the crontab as root. Neither serialmail nor
fetchmail run when called from the crontab if they are currently
running.

What do you mean? You have some kind of locking mechanism?

When called from the crontab, syslog always spits one (or both) of the 2
following errors:

Jul  2 10:00:02 gateway serialmail: 930920402.294743 maildirserial:
fatal: unable to get scanner status: no child processes  

Jul  2 11:00:01 gateway serialmail: 930924001.911220 maildirserial:
fatal: unable to run tcpclient: file does not exist

Don't know about the first one, but the second clearly says that
tcpclient wasn't in the PATH. I would create a script called
run_serialmail that does nothing but:

#!/bin/sh

PATH=$PATH:/var/qmail/bin:/path/to/tcpclient:/path/to/anything/else
export PATH

(serialmail command from your current crontab)

then tell cron to run run_serialmail.

-Dave