Re: [U2] Problem running script from crontab

2012-07-01 Thread John Thompson
into your crontab script so you could see when it runs. It could also be as simple as surrounding the statement in quotes as per a previous suggestion - we do on Windows. Good luck Colin From: Charles_Shaffer Date: Thu, 28 Jun 2012 13:03:37 -0500 Subject: Re: [U2] Problem running script from

Re: [U2] Problem running script from crontab

2012-06-30 Thread Colin Alfke
13:03:37 -0500 Subject: Re: [U2] Problem running script from crontab The phantom command will run your login paragraph. Is it setup to allow this process to go through? There should be something in the _PH_ file/folder for when the cron fired off. hth Colin This is interesting

[U2] Problem running script from crontab

2012-06-28 Thread Charles_Shaffer
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

Re: [U2] Problem running script from crontab

2012-06-28 Thread Jeff Schasny
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

Re: [U2] Problem running script from crontab

2012-06-28 Thread Tony Gravagno
Every time I see something like this it's a permissions issue. From: Charles_Shaffer This script runs fine from command line... But when it is run by the cron it doesn't seem to run ___ U2-Users mailing list U2-Users@listserver.u2ug.org

Re: [U2] Problem running script from crontab

2012-06-28 Thread George Gallen
...@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

Re: [U2] Problem running script from crontab

2012-06-28 Thread Charles_Shaffer
: [U2] Problem running script from crontab Sent by:u2-users-boun...@listserver.u2ug.org 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

Re: [U2] Problem running script from crontab

2012-06-28 Thread Israel, John R.
: 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

Re: [U2] Problem running script from crontab

2012-06-28 Thread Larry Hiscock
-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of charles_shaf...@ntn-bower.com Sent: Thursday, June 28, 2012 9:19 AM To: U2-Users@listserver.u2ug.org Subject: [U2] Problem running script from crontab Having a problem running a Unix script from the crontab. We use

Re: [U2] Problem running script from crontab

2012-06-28 Thread Colin Alfke
@listserver.u2ug.org Subject: [U2] Problem running script from crontab 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

Re: [U2] Problem running script from crontab

2012-06-28 Thread Charles_Shaffer
lARRY Do you have LOGIN paragraph in your VOC file? Yes and it looks like this. :AE VOC LOGIN Top of LOGIN in VOC, 13 lines, 195 characters. *--: P 001: PA 002: UDT.OPTIONS 82 ON 003: UDT.OPTIONS 43 ON 004: UDT.OPTIONS 43 OFF 005: UDT.OPTIONS 19 ON 006: UDT.OPTIONS 22 ON 007: SP-ASSIGN Q1 HS

Re: [U2] Problem running script from crontab

2012-06-28 Thread Charles_Shaffer
The phantom command will run your login paragraph. Is it setup to allow this process to go through? There should be something in the _PH_ file/folder for when the cron fired off. hth Colin This is interesting. There are files being created in the _PH_ directory for each run (they are 10

[U2] Problem running script from crontab

2012-06-28 Thread Charles_Shaffer
I rewrote the script to use our in-house methods and now it is working. #!/bin/ksh echo `date` FILES_LOG/ReqImp.LOG . /usr/local/set_udt_environ.scr cd /NTN/DATA/PRODUCTION $UDTBIN/udtEODFILES_LOG/ReqImp.LOG PHANTOM REQIMPORT_MA bye EOD Still not sure why it was failing before, but I am

Re: [U2] Problem running script from crontab

2012-06-28 Thread Charles_Shaffer
If this was UniVerse, I would check the VOC LOGIN paragraph and make sure it's not invoking a menu (or something) requiring an Input Mark It is interesting that you said that. The program that the script is calling does exactly that. It is calling menu programs from an ERP package and it

Re: [U2] Problem running script from crontab

2012-06-28 Thread Larry Hiscock
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Haskett Sent: Thursday, June 28, 2012 11:38 AM To: U2 Users List Subject: Re: [U2] Problem running script from crontab SCO!? Bill - Original Message - *From

Re: [U2] Problem running script from crontab

2012-06-28 Thread Mark Eastwood
If this was UniVerse, I would check the VOC LOGIN paragraph and make sure it's not invoking a menu (or something) requiring an Input Mark 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

Re: [U2] Problem running script from crontab

2012-06-28 Thread George Gallen
Which version of RH? -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Larry Hiscock Sent: Thursday, June 28, 2012 3:33 PM To: 'U2 Users List' Subject: Re: [U2] Problem running script from crontab LOL ... what can I

Re: [U2] Problem running script from crontab

2012-06-28 Thread Charles_Shaffer
George. RedHat 6. Charles Shaffer Senior Analyst NTN-Bower Corporation ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users

Re: [U2] Problem running script from crontab

2012-06-28 Thread George Gallen
went fine. George -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of charles_shaf...@ntn-bower.com Sent: Thursday, June 28, 2012 4:17 PM To: U2 Users List Subject: Re: [U2] Problem running script from crontab George

Re: [U2] Problem running script from crontab

2012-06-28 Thread Wols Lists
On 28/06/12 19:03, charles_shaf...@ntn-bower.com wrote: This is interesting. There are files being created in the _PH_ directory for each run (they are 10 minutes) apart. But they are empty. This means that something failed right off the bat right? Looks like it. Run the PHANTOM command