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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.