Re: cron script problem

From: Gene Sais (Gsais_at_CO.PALM-BEACH.FL.US)
Date: 09/30/04

  • Next message: Leyden, Joseph: "Re: vi editor question"
    Date:         Thu, 30 Sep 2004 10:08:13 -0400
    To: aix-l@Princeton.EDU
    
    

    Sample crontab entry:

    ######################################################
    #node1 oracle crontab
    ######################################################
    #minute(0-59) hour(0-23) day(1-31) month(1-12) weekday(0-6 with
    0=Sunday)
    ######################################################
    00 07 * * 1-5 /oracle/myjob.ksh > /oracle/myjob.log 2>&1

    >>> MRay@NEGASCO.COM 9/30/2004 9:36:25 AM >>>

    Try putting the full path to the script in your crontab, too.

    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of
    Shawn Bierman
    Sent: Thursday, September 30, 2004 9:19 AM
    To: aix-l@Princeton.EDU
    Subject: Re: cron script problem

    I doubt you need the nohup too.
    -shawn

    >>> Holger.VanKoll@SWISSCOM.COM 9/30/04 8:05:00 AM >>>
    id 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.

    -----------------------------------------
    The contents of this e-mail are intended for the named addressee only.
    It contains information that may be confidential. Unless you are the
    named addressee or an authorized designee, you may not copy or use it,
    or disclose it to anyone else. If you received it in error please notify
    us immediately and then destroy it.


  • Next message: Leyden, Joseph: "Re: vi editor question"

    Relevant Pages

    • Re: serious problem need help.
      ... You could then have a cron script run once a minute or ... to try and clear out the queue. ... would be to create a script that checks ... you want to act as the trigger. ...
      (comp.lang.php)
    • Re: iptables -> refuse/grant access from ips in a file
      ... >> If you need to alter this on a running machine, you might make your script ... >> daemon to continuously monitor file changes. ... A _simple_ cron script run every minute or 5 minutes or ...
      (linux.redhat.misc)
    • Re: Duplicity does not run from cron-script
      ... I have a cron script that first calls automysqlbackup for dumping the ... database and dumps the package list. ... database and package list, but it does not run duplicity. ...
      (Debian-User)
    • Re: storing passwords in a file
      ... > script file. ... Not from a knowledgeable admin. ... cron script and execute whatever access methods are used in the script. ...
      (comp.unix.solaris)
    • Re: GPG in crontab causes blank messages
      ... When I run my crontab command manually in terminal, ... But since the output of the script contains a big list of files, ... If I remove the GPG portion of the command, ...
      (comp.sys.mac.apps)