Depending on how long the job takes, this little script runs about every 10
seconds. If you want to be more exact I think you'll have to fork.
#!/usr/bin/perl -w
use strict;
use POSIX;
# Start the loop for the daemon....
while(1) {
my(@now) = localtime();
my($today) = POSIX::strftime( "%m/%d/%Y", @now);
my($time) = POSIX::strftime( "%H:%M", @now);
print "Running 10 second job | $today | $time\n";
system ( 'perl newftp3.pl gep_card.xml' );
sleep 10; # 10 second intervals
}
-----Original Message-----
From: Lance Prais [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 7:51 AM
To: Perl
Subject: scheduler question
I have written a Perl script that needs to be executed every 10 seconds.
How would I go about doing this. I am working with Perl on NT and using
scheduler and the lowest I can set it to is 1 minute.
Thank you in advance
Lance
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]