Introduction
at.exe is a commandline scheduler on Win32, similar in concept to *nix cron and at. It's run from a cmd.exe window, and allows you to add, remove, and view scheduled commands. Other tools exist for MS-Windows scheduling, but are outside the scope of this document.Examples
(at time /date command)
at 2:00 /every:Th C:\Perl\bin\perl.exe C:\perls\foo.pl --options --and --arguments
at 14:00 /next:T C:\Perl\bin\perl.exe C:\perls\foo.pl --options --and --arguments
Caveats
Perl-Specific
- at.exe evidently runs in an environment with no path to perl.exe. Therefore the script must be called in this form: drive:\path\to\perl drive:\path\to\script.pl
General
- cmd.exe commands apparantly cannot exceed 256 characters. See Win32::AdminMisc below to get around this.
- at.exe is included only in true 32bit versions of MS-Windows (NT, 2k, XP), and isn't part of 16bit versions of MS-Windows (3.(0|1)|9(5|8)|me). If one of the latter group is your development platform, you have my deepest condolances. %^P
- Mistakes in this doc are quite possible - corrections, additions, and rotton kiwifruit welcome. Well, maybe not the rotton fruit.
See Also
PerlMonks
- Win32 module for WinNT at scheduler?
- Win32 Task Scheduler Monitor
- a cron; in perl (added postfacto)
Roth
- Win32::AdminMisc - ScheduleAdd()
- Win32::AdminMisc - ScheduleDel()
- Win32::AdminMisc - ScheduleGet()
- Win32::AdminMisc - ScheduleList()
ActiveState
CPAN
Microsoft support
- AT Tasks Cannot Be Viewed Using the Task Scheduler Tool
- HOW TO: Modify a Scheduled Task to Repeat By Minutes or Hours
- Task Scheduler Service on Windows NT
- A Task That Is Scheduled with the AT Command May Stop After 72 Hours
- HOW TO: Use the AT Command to Schedule Tasks
Local help
- at /?
Thanks to a monk or three (you know who you are) for pre-post critique, who shall remain nameless lest the sins of this post be visited upon them verily unto three generations
Update: thanks to to replying monks for pointing out what appears to be substantial problems with win32 at. I've not encountered problems myself, but have no reason to doubt that they exist. Please, read the rest of this thread for yourself *before* using my examples in any situation that's at all important. Caveat Usor
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Schedule Win32 Perl Scripts with AT
by dws (Chancellor) on Dec 04, 2002 at 21:44 UTC | |
by BrowserUk (Patriarch) on Dec 04, 2002 at 22:36 UTC | |
by Anonymous Monk on Dec 04, 2002 at 22:27 UTC | |
Re: Schedule Win32 Perl Scripts with AT
by simon.proctor (Vicar) on Dec 04, 2002 at 23:01 UTC | |
by belg4mit (Prior) on Dec 05, 2002 at 00:48 UTC | |
Re: Schedule Win32 Perl Scripts with AT
by Marza (Vicar) on Dec 05, 2002 at 04:49 UTC | |
Re: Schedule Win32 Perl Scripts with AT
by YordanGeorgiev (Acolyte) on Jan 07, 2007 at 19:52 UTC |
Back to
Meditations