Re: A Classic crontab Question

From: Green, Simon (Simon.Green_at_EU.ALTRIA.COM)
Date: 09/01/05

  • Next message: Barry Finkel: "Re: A Classic crontab Question"
    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 message: Barry Finkel: "Re: A Classic crontab Question"

    Relevant Pages

    • Re: Running a script in the background
      ... > reloads the firewall rules. ... The problem in, after the ipfw -qf, the ... > script sends data to the terminal, but because the default rule is 65535 ... and the connection closes thereby terminating the ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Disconnecting client browser from php file
      ... > I'd like to initiate a php script using a standard httpd request, ... > then allow the client browser to disconnect without terminating the ... client browser receives the page and starts to render it the PHP script has ...
      (comp.lang.php)
    • Re: Running a script in the background
      ... listened as patpro contributed this to humanity: ... and the connection closes thereby terminating the ... >>What I want to do is when I run this script, ... Daniel Rudy ...
      (comp.unix.bsd.freebsd.misc)
    • Running a script in the background
      ... reloads the firewall rules. ... script sends data to the terminal, but because the default rule is 65535 ... deny ip from any to any, the information cannot get out to the ... and the connection closes thereby terminating the ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Running a script on windows2000 logoff/shutdown
      ... capable of terminating the process that is running the script (eg ... you see the "program xyz is has not responded in a timely manner. ... I have created an ASP script that enters data into an Access Database. ...
      (microsoft.public.inetserver.asp.db)