SUMMARY: cron script
Gabel Martin
Martin.Gabel at ffm3.siemens.de
Wed Aug 27 07:03:47 EDT 2003
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 at sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
More information about the summaries
mailing list