Re: A Classic crontab Question
From: Green, Simon (Simon.Green_at_EU.ALTRIA.COM)
Date: 09/01/05
- Next in thread: Barry Finkel: "Re: A Classic crontab Question"
- Maybe reply: Barry Finkel: "Re: A Classic crontab Question"
- Maybe reply: Ford, Phillip: "Re: A Classic crontab Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 1 Sep 2005 11:21:04 +0200 To: aix-l@Princeton.EDU
That's the first thing to check, but I notice that there's also a TERM
variable. Crontab doesn't have a terminal associated with it. Obviously a
variable is just a variable, but if the program being called is expecting
there to be a terminal it might have problems.
-- Simon Green Altria ITSC Europe s.a.r.l. AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX N.B. Unsolicited email from vendors will not be appreciated. Please post all follow-ups to the list. -----Original Message----- From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of Robert Miller Sent: 31 August 2005 18:49 To: aix-l@Princeton.EDU Subject: Re: A Classic crontab Question The classic answer is that there's something in the user's .profile or .kshrc that sets up some environment (variables, PATH statement, functions, etc) that is set up when the user runs it interactively, but that environment is not set up when cron runs. So, find out what is not set up when running through cron, and add that to the script that runs the job, and things should be happy. --rm -----Original Message----- From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of Karl Jones Sent: Wednesday, August 31, 2005 10:37 AM To: aix-l@Princeton.EDU Subject: A Classic crontab Question I know this has been asked often before but I am not finding the posts in the archives. I have a script that works for a user but when executed from a crontab fails with the following message (AIX 5.1): [snip] a25R78C a25R77CQQa25R1C a1R1C/usr/local/bbj401/bin/bbj terminating: FAILED to read from AppServer Here is the setup scripts....(in the application it runs about five other programs.) $ cat dosj TERM=wyse60 export TERM BBTERM=T700 export BBTERM BBCONFIG=/usr/local/osas/OSASSRV/progRM/config.aut export BBCONFIG TERMCAP=/usr/local/bbj401/cfg/termcap export TERMCAP cd /usr/local/osas/OSASSRV/progRM /usr/local/bbj401/bin/bbj -q /usr/local/osas/OSASSRV/progRM/RMSETUP.aut $
- Next in thread: Barry Finkel: "Re: A Classic crontab Question"
- Maybe reply: Barry Finkel: "Re: A Classic crontab Question"
- Maybe reply: Ford, Phillip: "Re: A Classic crontab Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|