resistance has asked for the wisdom of the Perl Monks concerning the following question:

Hi

is there a parser for .job files written in _pure_ perl exists?

simple strings-like parsing give me what I need (command to run), but I wonder if parsing based of structure of JOB file already exists.
$ strings -e l notepad.job C:\WINDOWS\NOTEPAD.EXE \tasks.txt C:\WINDOWS Administrator $ hexdump -C notepad.job 00000000 01 05 01 00 3e 52 63 d4 7e de ec 43 9b 7f 3c 2a |....>Rc.~ +..C..<*| 00000010 2a 4d 8f 5a 46 00 d2 00 00 00 00 00 3c 00 0a 00 |*M.ZF.... +...<...| 00000020 20 00 00 00 00 14 73 0f 00 00 00 00 00 13 04 00 | .....s.. +.......| 00000030 c0 00 80 21 d8 07 09 00 03 00 0a 00 05 00 06 00 |...!..... +.......| 00000040 2d 00 38 02 00 00 17 00 43 00 3a 00 5c 00 57 00 |-.8.....C +.:.\.W.| 00000050 49 00 4e 00 44 00 4f 00 57 00 53 00 5c 00 4e 00 |I.N.D.O.W +.S.\.N.| 00000060 4f 00 54 00 45 00 50 00 41 00 44 00 2e 00 45 00 |O.T.E.P.A +.D...E.| 00000070 58 00 45 00 00 00 0b 00 5c 00 74 00 61 00 73 00 |X.E.....\ +.t.a.s.| 00000080 6b 00 73 00 2e 00 74 00 78 00 74 00 00 00 0b 00 |k.s...t.x +.t.....| 00000090 43 00 3a 00 5c 00 57 00 49 00 4e 00 44 00 4f 00 |C.:.\.W.I +.N.D.O.| 000000a0 57 00 53 00 00 00 0e 00 41 00 64 00 6d 00 69 00 |W.S.....A +.d.m.i.| 000000b0 6e 00 69 00 73 00 74 00 72 00 61 00 74 00 6f 00 |n.i.s.t.r +.a.t.o.| 000000c0 72 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 |r........ +.......| 000000d0 00 00 01 00 30 00 00 00 d8 07 08 00 12 00 00 00 |....0.... +.......| 000000e0 00 00 00 00 0f 00 26 00 00 00 00 00 00 00 00 00 |......&.. +.......| 000000f0 00 00 00 00 07 00 00 00 01 00 00 00 00 00 00 00 |......... +.......| 00000100 00 00 00 00 |....|

or may be somebody know where to read about job file format?
thanks

Replies are listed 'Best First'.
Re: looking for parser of binary .JOB files (MS Task Scheduler)
by Anonymous Monk on Sep 10, 2008 at 05:02 UTC
Re: looking for parser of binary .JOB files (MS Task Scheduler)
by Anonymous Monk on Sep 10, 2008 at 04:51 UTC
        So can't you use it to re-implement in pure perl? _pure_perl is a goofy requirement. Either you want to complete a job, or it doesn't matter.