Logging specific informaion in cron
I have a shell script on AIX - in my script I specify a log location. When
I manually run the script the log populates. When I add the script to
cron, the log gets overwritten with no data. Is there a tag I need to put
in the crontab?
So in my /dir I have myjob.sh which I have specific information that I
want stored to /dir/myjob.log When I run ./myjob.sh from the command line,
the script sends my info to the log. When I run the job in cron tab
/dir/myjob.log gets overwritten.
No comments:
Post a Comment