SUMMARY: cron script

From: Gabel Martin (Martin.Gabel_at_ffm3.siemens.de)
Date: 08/27/03

  • Next message: shahul.hameed_at_uktransco.com: "Sun Cluster 3.x"
    To: "'sunmanagers@sunmanagers.org'" <sunmanagers@sunmanagers.org>
    Date: Wed, 27 Aug 2003 13:03:47 +0200
    
    

    Thanks everybody

    Nearly everyone told me to user absolute calls for the date command
    (/usr/bin/date).
    The "stty" call produced the SIGTTOU since no stty is attached.
    Therefore I modified the script:

    #!/usr/bin/ksh
    /usr/bin/date +20%y-%m-%d > ~/date.txt

    thankx again =)
    ----------------------------------------------------------------
    original message:

    >>Hi everybody,
    >>
    >>I've a litte script wich I'd like to start periodical as cron job. The
    script should run in background:
    >>
    >>stty -tostop
    >>date +20%y-%m-%d > ~/date.txt
    >>
    >>When lauched by hand - ./getdate.sh - it produces a: "[1] + Stopped
    (SIGTTOU) .getdate.sh &" and the "date.txt" file is empty.
    >>When started in foreground no error occures.
    >>Wen started as cron job, nothing happens.
    >>Does anyone has an idea ?
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: shahul.hameed_at_uktransco.com: "Sun Cluster 3.x"