From: Roy Kidder (RoyKidder@yahoo.com)
Date: Tue Sep 21 2004 - 22:51:15 EDT
I personally would approach it this way:
-----
#!/bin/sh
while [ "TRUE" ]
do
echo "Something"
sleep 86400
done
-----
Roy
brian irvin said:
> Team:
>
> I have a very small shell program that does this:
>
> while `sleep 86400`
> do
> ..
> ..
> echo "Something"
> ...
> ...
> done
>
> (86400 is one day).. The program does not seem to wake
> up after 1 day, and process what I want it to do
> everyday.
>
> If I change 86400 to some smaller number, it seems to
> work fine. Could anyone tell why something like this
> happens?
>
> Thanks in advance
>
> Brian.
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail
>
> --
> ---> Please post QUESTIONS and SUMMARIES only!! <---
> To subscribe/unsubscribe to this list, contact
> majordomo@dutchworks.nl
> Name: hpux-admin@dutchworks.nl Owner:
> owner-hpux-admin@dutchworks.nl
>
> Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse
> only)
> http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse &
> search)
>
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:43 EDT