Re: Output to file lost when using cron
"Tim Wilson" <twilson@stl-inc.com> wrote in message
news:5ccf847b.0406080635.28d6859a@posting.google.c om...
> Hello,
> I have a simple script that runs the following command:
> w | grep load >/tmp/load.stat
> When executing as 'root' user it sends the output to the file
> correctly. If I have the script run from cron no output is generated.
> I am running this on an RS6000 using AIX v4.3. Would you tell me what
> I need to do to have this work correctly from cron?
Tim,
What are the permissions on /tmp/load.stat? Is the cron job running as
root? How do you know that the job is running? Did you change the crontab
file with crontab -e or just edit up the file? Directly editing the file
will not work. See man crontab.
Digitally yours,
Kevin Sproule |