This used to be the method that MRTG used on a NT machine. The newer versions do not do this, so you will have to find older versions with docs that tell you how to do it. Actually, I remember there being an NT script, or little Perl program that added all of this for you. I got the following from this page, http://noc.nol.net/mirrors/mrtg/mrtg.html, which is an archive of some sort of older versions of the mrtg web site. The current page is www.mrtg.org.
$interval=300; while (1) { sleep( $interval - time() % $interval ); system 'c:\bin\perl c:\mrtg-2.7.4\run\mrtg c:\mrtg-2.7.4\run\mrtg.cfg'; } Matthew J. Tisdel Service Resources, Inc. 864 272-2777 -----Original Message----- From: Scott [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 1:45 PM To: [EMAIL PROTECTED] Subject: perl sleep I have been asked to rewrite a ftp process in perl on Win32. The program will scan a directory every five minutes and if a file exists, it will ftp the file to a server. My question is, has any had an experience using the Windows Task Scheduler to do a every 5 minute process or do you think it would be best to have perl sleep for 5 minutes? Thanks, -Scott -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]