Re: cron script problem

Holger.VanKoll_at_SWISSCOM.COM
Date: 09/30/04

  • Next message: Shawn Bierman: "Re: cron script problem"
    Date:         Thu, 30 Sep 2004 15:05:00 +0200
    To: aix-l@Princeton.EDU
    
    

    iŽd say the "&" is unnecessary (cronjobs are always "backgrounded") and might be your problem

    try without &
    if that still doesnt work, post the script

    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of Leven, Chris
    Sent: Thursday, September 30, 2004 2:37 PM
    To: aix-l@Princeton.EDU
    Subject: cron script problem

    My DBA needs to run a job in background out of a cron job. After we bring the database back up she needs this process to run in background.
    She added the following line to the startup script but the cron job hung. It runs fine from the command line. Any thoughts?

    nohup mwact.sh start &

    Christopher Leven
    Senior Programmer/Analyst
    IBM Certified Specialist AIX Administration IBM Certified Specialist AIX Support IBM Certified Specialist PSSP

    Garlock Sealing Technologies
    An EnPro Industries Company
    1666 Division St
    Palmyra, NY 14522
    P 315-597-3034
    F 315-597-7250
    C 585-704-0107
    Chris.leven@garlock.com

    ----------Legal Disclaimer----------
    The information contained in this message may be privileged and confidential, and is intended solely for the use of the named addressee. No other person is authorized to access, copy or re-use this message (or any information contained herein). If you are not the intended recipient, please notify us immediately by replying to this message and delete it from your computer.


  • Next message: Shawn Bierman: "Re: cron script problem"

    Relevant Pages

    • Re: cron script problem
      ... I doubt you need the nohup too. ... Subject: cron script problem ... She added the following line to the startup script but the cron job hung. ... IBM Certified Specialist AIX Administration IBM Certified Specialist AIX Support IBM Certified Specialist PSSP ...
      (AIX-L)
    • rlogin via expect mysteriously aborts when run from cron
      ... I'm not sure whether this is a problem related to shell, ... I have an application which, at some point, executes a zsh script. ... When investigating the output which was sent to me from the cron job ... I had one case where even a command ...
      (comp.lang.tcl)
    • Re: How can I run cron job at 12o clock every night on my RH Linux machine?
      ... > How can I run cron job in Linux, I need to run some job automatically ... > every night at 12'o clock on my RH Linux machine. ... These four commands I need to place in that script. ...
      (comp.os.linux.misc)
    • Re: Cron jobs run out of memory?
      ... > (the script is attached to this e-mail). ... > cron job has failed, but running the program manually worked fine: ... -/+ buffers/cache: 169532 346776 ... Swap: 497968 274256 223712 ...
      (Debian-User)
    • Re: script doesnt work when run as cron job
      ... >It should be mailed to you (or root, or whoevers' cron job it is). ... Earlier you posted this bit of script: ... >and this extract from the log files: ... Attempting to start rsync ...
      (comp.unix.shell)