in reply to Running tasks on remote Windows machines

Massyn,

  Looks pretty good. I wrote something a while back similar to this but it schedules "rdisk" (ERD) on our NT/2000 server's and then copies the files back to a central location. My sugesstions:

  • Before scheduling a job the "Schedule" service needs to be running. Check it using Win32::Service.

  • Try using Win32::AdminMisc::ScheduleAdd to schedule jobs.

  • Does anyone know of a better way to get time from a windows machine other than "net time"? I've tried the Net::Time module but I couldn't get it to work correctly.


    --JD
    • Comment on Re: Running tasks on remote Windows machines
  • Replies are listed 'Best First'.
    Re: Re: Running tasks on remote Windows machines
    by Marza (Vicar) on Jan 16, 2003 at 03:17 UTC

      Win32::AdminMisc::ScheduleAdd has problems when you run against the W2K TaskScheduler. Dave has not had time to update his mods lately.

      There is a sourceforge project called TaskScheduler that is pretty slick.

    Re: Windows time
    by Anonymous Monk on Jan 15, 2003 at 21:41 UTC
      I've used:
      my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime; my $time = localtime; print "$time";
      to print out time on a 2kServer before