Changeset 1096
- Timestamp:
- Apr 23, 2009, 11:57:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
noc/nagios/status-user/finger.sh
r1095 r1096 2 2 3 3 docnagios() { 4 echo q | env TERM=ansi LINES=1000 COL S=80 /usr/local/nagios/bin/cnagios -b "$@" | sed 's/4 echo q | env TERM=ansi LINES=1000 COLUMNS=80 /usr/local/nagios/bin/cnagios -b "$@" | sed 's/ 5 5 \[B/\n/g; s/ 6 6 /\n/g' | perl -pe ' … … 8 8 s/(.)\\[(\d+)b/$1x($2+1)/ge; # (\d+)b means repeat previous character n times 9 9 s/\\[(\d+)d//g; # absolute go to line; ignored 10 s/\\[(\d+)G/" "x($1-$-[0]-1)/ge; # go to absolute horizontal position11 s/\\[\d+;(\d+)H/" "x($1-$-[0]-1)/ge; # go to absolute position; line ignored10 1 while s/\\[(\d+)G/" "x($1-$-[0]-1)/e; # go to absolute horizontal position 11 1 while s/\\[\d+;(\d+)H/" "x($1-$-[0]-1)/e; # go to absolute position; line ignored 12 12 ' 13 13 }
Note: See TracChangeset
for help on using the changeset viewer.