The following example starts the service 'myService' after 7200 seconds (two hours).
#! /usr/bin/perl -w use strict; use warnings; my $command = "net start myService"; my $delay = 7200; my $startTime = time + $delay; my ($seconds, $minutes, $hours, $day) = localtime $startTime; `at $hours:$minutes /next:$day $command`;
inman
In reply to Re: starting a win2000-service with delay
by inman
in thread starting a win2000-service with delay
by tos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |