Make sure any commands referenced in your script, use the full pathname. I've 
had problems sometimes
Where the process doesn't have the same path names as when I tested it.

Ex.  Instead of cp , use /bin/cp

Sudo has this issue as well


-----Original Message-----
[] On Behalf Of Jeff Schasny
Sent: Thursday, June 28, 2012 12:54 PM
To: U2 Users List
Subject: Re: [U2] Problem running script from crontab

Are you running it at the command line as the same user that it runs 
under in cron? wrote:
> Having a problem running a Unix script from the crontab.  We use Redhat 
> and Unidata 7.1
> This script runs fine from command line
> export UDTHOME
> UDTBIN=/usr/ud/bin
> export UDTBIN
> export CMIHOME
> export PATH
> But when it is run by the cron it doesn't seem to run.  We do a lot of 
> this sort of thing here, but I have never tried running a script that used 
> a PHANTOM command like this.  Does anyone see anything obvious here that 
> would not let this run from cron?
> Charles Shaffer
> Senior Analyst
> NTN-Bower Corporation
> _______________________________________________
> U2-Users mailing list

Jeff Schasny - Denver, Co, USA
jschasny at gmail dot com
U2-Users mailing list
U2-Users mailing list

Reply via email to