
March 13th, 2008, 11:12 PM
|
|
n00b DevH'er
|
|
Join Date: Jan 2008
Location: Tejas
Posts: 9
Time spent in forums: 3 h 3 m 29 sec
Reputation Power: 0
|
|
|
NT Batch - Double 'at' Command
I expect that this will be a very short thread; I just need to confirm my syntax.
I want to schedule a command for a certain day (e.g. the 15th of next month) then have the command repeat at each occurrence of the specified interval (e.g. every Tuesday).
The following XML describes the syntax that needs confirmation. My PHP app will locate the "Windows NT" schedule-command, get its parameter names, extract the CDATA, and preg_replace() the %-enclosed names with their corresponding values.
Code:
XML Code:
Original
- XML Code |
|
|
|
<scheduleCommand systems="Windows%20NT" parameters="hour0 minute0 day0 hour1 minute1 day1 command"><![CDATA[ at %hour0%:%minute0% /next:%day0% at %hours1%:%minutes1% /interactive /every:%day1% %command% ]]></scheduleCommand>
That just looks like a mess to me, so I doubt you want to pore over it just to help me. So here are two examples of what the PHP might get as a result of using preg_replace() as specified above (where 'dowhatever' is the command): - at 0:0 /next:15 at 17:30 /interactive /every:T dowhatever
- at 23:0 /next:W at 2:15 /interactive /every:4 dowhatever
Is that right? Thanks!
|