John >>Each user CAN have their own crontab. Login as this user and manually step through each command in your script and see where it falls apart.
>>JRI I am using our master user cmi. When I log in as cmi and type in the command that is in the crontab entry, from cmi's home directory, it runs with no problems. But when I wait for the cmi's cron to run it, nothing happens. We want it to run every tem minutes. Here is the line from the crontab. # Requisition Imports from MP2 */10 * * * * /NTN/DATA/PRODUCTION/SCRIPTS_MODS/ReqImp_MA Is the */10 correct for RedHat? I've never setup a job to run every 10 minutes like this. 5,15,25,35,45,55 didn't work either. Charles Shaffer Senior Analyst NTN-Bower Corporation From: "Israel, John R." <johnisr...@daytonsuperior.com> To: 'U2 Users List' <u2-users@listserver.u2ug.org>, Date: 06/28/2012 12:22 PM Subject: Re: [U2] Problem running script from crontab Sent by: u2-users-boun...@listserver.u2ug.org Each user CAN have their own crontab. Login as this user and manually step through each command in your script and see where it falls apart. JRI -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [ mailto:u2-users-boun...@listserver.u2ug.org] 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? charles_shaf...@ntn-bower.com 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 > > UDTHOME=/NTN/CMI > export UDTHOME > UDTBIN=/usr/ud/bin > export UDTBIN > CMIHOME=/NTN/CMI/TRANS4M > export CMIHOME > PATH=$PATH:@UDTBIN > export PATH > cd /NTN/DATA/PRODUCTION > $UDTBIN/udt PHANTOM REQIMPORT_MA > > 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 > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > > -- ------------------------------------------------------------------------ Jeff Schasny - Denver, Co, USA jschasny at gmail dot com ------------------------------------------------------------------------ _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users