Commit | Line | Data |
378cc40b |
1 | This stuff is supplied on an as-is basis--little attempt has been made to make |
2 | any of it portable. It's mostly here to give you an idea of what perl code |
3 | looks like, and what tricks and idioms are used. |
4 | |
5 | System administrators responsible for many computers will enjoy the items |
6 | down in the g directory very much. The scan directory contains the beginnings |
7 | of a system to check on and report various kinds of anomalies. |
8 | |
9 | If you machine doesn't support #!, the first thing you'll want to do is |
10 | replace the #! with a couple of lines that look like this: |
11 | |
12 | eval "exec /usr/bin/perl -S $0 $*" |
13 | if $running_under_some_shell; |
14 | |
15 | being sure to include any flags that were on the #! line. A supplied script |
16 | called "nih" will translate perl scripts in place for you: |
17 | |
18 | nih g/g?? |