[Machine: Sun 4/110 running SunOS 4.1]
I'm trying to run nnadmin (the program to administer the NN
newsreader) from cron in order to expire articles in the middle of the
night. The command for doing this is:
I've added this to the crontab for <news>. Here's what the crontab
01 02 * * * /usr/local/bin/nnadmin =EYW
The first line truncates the log file for nnadmin.
However, cron fails when it tries to execute these commands. I turned
on logging of cron messages, and here's what shows up in syslog:
Aug 5 sun-diego cron: > news 13381 c Wed Aug 5 02:00:01 1992
Aug 5 sun-diego cron: < news 13381 c Wed Aug 5 02:00:01 1992 Exit status 1
Aug 5 sun-diego cron: > CMD: 13388 c /usr/local/bin/nnadmin =EYW
Aug 5 sun-diego cron: > news 13388 c Wed Aug 5 02:01:00 1992
Aug 5 sun-diego cron: < news 13388 c Wed Aug 5 02:01:00 1992 Exit status 1
(I've deleted the time field to make it fit on one line.) Apparently
cron is having trouble running nnadmin. Any ideas why?
* /usr/local/bin/nnadmin exists and is rx by everyone.
* su to "news" followed by giving the command manually works.
* <news> does not have a home directory (is this a problem?).
Any help will be appreciated.
-- Scott T.