in reply to starting a win2000-service with delay
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
|
|---|