Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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

    Roth

    ActiveState

    CPAN

    Microsoft support

    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


In reply to Schedule Win32 Perl Scripts with AT by ybiC

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-03-28 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found