> -----Original Message----- > From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On > Behalf Of Macioce, Larry > Sent: Thursday, August 10, 2006 10:09 AM > To: [email protected] > Subject: question on DB2 and crontab > > > We are trying to schedule DB2 and CM maintenance using crontab. The > maintenance has to be done as root. I've set the commands in roots > crontab and al looked fine. It appeared the commands worked > because they > created the log files (with correct date and time stamps) associated > with the maintenance. But on closer examination the files all > had a zero > byte count. So it looks as if crontab is doing his job and maintenance > is starting but no output is coming out and it also looks as if the > backups aren't done. I did a chmod on the scripts so I > know they can > be executed. And I know the script work because when the scripts are > issued manually they work. > > Ideas??
One thing to remember is that anything that runs from a crontab entry does not have all the environment variables set up. Is it possible that the script silently fails if some environment variable is not set up? In particular, the normal "sourcing" for /etc/profile and ~/.profile (or ~/.bashrc) is not done. So you may not have the PATH, and other variables, set up correctly for the script. -- John McKown Senior Systems Programmer HealthMarkets Keeping the Promise of Affordable Coverage Administrative Services Group Information Technology This message (including any attachments) contains confidential information intended for a specific individual and purpose, and its content is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this transmission, or taking any action based on it, is strictly prohibited. ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
