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
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
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
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
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
...@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
: [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
: 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
-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
@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
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
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
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
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
[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
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
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
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
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
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
20 matches
Mail list logo