Sendmail with cron

Hi!

I’am using crontab for creating an email list every night
on daily basis. It works perfectly. And use it for other
things also.

But my problem is that i can’t get crontab to work for armailer,
i would like to have a crontab for ar_sendmail -o but can not
get this to work.

Any one who have the same problem or even better a solution.

Thanks Svea

I’am using crontab for creating an email list every night
on daily basis. It works perfectly. And use it for other
things also.

But my problem is that i can’t get crontab to work for armailer,
i would like to have a crontab for ar_sendmail -o but can not
get this to work.

Any one who have the same problem or even better a solution.

Can you get ar_sendmail to work from the command line? If that works,
compare the differences in environment variables b/n your interactive
shell and cron’s environment. Cron is notorious for setting a very
limited path that does NOT include /usr/local/bin.

For example, on my mac I put this at the top of my crontab file:

PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/
X11/bin:/Library/PostgreSQL8/bin:/usr/local/mysql/bin:/usr/local/lsws/
bin:/usr/local/git/bin:/Users/philip/bin

Is it necessary? Honestly I don’t remember… osx may grab things
from the central location, but I’m in such a habit of doing it I just
always add it.

Good luck!

-philip

Thanks, i missed a line in my path so thats why it did not work.