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"

    Relevant Pages

    • Re: stty & cron
      ... > I've got some ksh scripts that when run via a cron job, ... > This doesn't happen when the script is run in a terminal session. ... stty - change and print terminal line settings ... so 'stty' can't manipulate or show the terminal settings ...
      (comp.unix.solaris)
    • 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: Keystrokes go missing after script exits
      ... You can fix this with "stty ... can I put that as the last command in my script and not have the ... Probably the most general solution: Rename the original script and ... # This is broadly similar to just calling "stty sane" but it copes better ...
      (Debian-User)
    • 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)