]>
Commit | Line | Data |
---|---|---|
abb00e7a | 1 | #! /bin/sh |
2 | # $Id$ | |
3 | ||
4 | # The following exit codes are defined and MUST BE CONSISTENT with the | |
5 | # error codes the library uses: | |
6 | MR_MISSINGFILE=47836473 | |
7 | ||
8 | PATH=/bin | |
9 | OUTFILE=/var/tmp/sapprint.out | |
10 | ||
11 | # Alert if the output file doesn't exist | |
12 | test -r $OUTFILE || exit $MR_MISSINGFILE | |
13 | ||
14 | # Set the perms usefully | |
15 | chown root $OUTFILE | |
16 | chgrp 0 $OUTFILE | |
17 | chmod 644 $OUTFILE | |
18 | ||
19 | # cleanup | |
20 | test -f $0 && rm -f $0 | |
21 | ||
22 | exit 0 |