-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Henrique G. Abreu wrote: > runing on cron, I can't see any error message. All I got is the log I > generate on the script: >> BEGINNING DAILY BACKUP ZENOSS >> BACKUP ZENOSS WITH TROUBLE - ERROR! > > the entry in my cron is: > 35 13 * * * root /usr/local/zenoss/scripts/backup_zenoss.sh > I change hour and minute every test, to few minutes ahead so I can > test the script > it's calling the script ok, because it generates the log above. > > environment variables? I think could be it, because when I run it on > hand, it works. > how do I load env vars to the script started by cron? > > thanks >
Hi, you may try to put your environment variables, e.g. PATH, in the crontab. There is an example in the man page: man 5 crontab HTH - -- Cheers, Wei Chen http://www.acplex.com/people/wchen/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGPG4+CIqXQV6BF28RAsVFAJ41yJWSnSAa8Nw2a+j3XpnYnN5LqQCfaSVp v+7SnBPwn+u0xPTG605L09A= =n1zO -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]