How about getting the program to write a little text file out containing the time it was last started. Check this date from within the script and if the date is yesterday and the time is > 12:01am then restart.
How often does the script finish it's internal loop (I'm assuming it loops, does some checks, then loops again or performs an action)? How critical is it that the script be restarted at 12:01 exactly? And why does the script need restarting at all? -----Original Message----- From: Yacketta, Ronald [mailto:[EMAIL PROTECTED]] Sent: 01 October 2001 16:44 To: Beginners (E-mail) Subject: date/time Folks, Looking for a little help for taking current time (from time) and finding the time until 1 minute after midnight. I have a daemon process (perl script) that needs to die ever new day, the process should only run from 12:01 AM Today - l 12:01 AM Tomorrow any thoughts? -Ron -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------Confidentiality--------------------------. This E-mail is confidential. It should not be read, copied, disclosed or used by any person other than the intended recipient. Unauthorised use, disclosure or copying by whatever medium is strictly prohibited and may be unlawful. If you have received this E-mail in error please contact the sender immediately and delete the E-mail from your system. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]