]> andersk Git - moira.git/blob - gen/sapprint.sh
Add sapprint DCM for pushing list of SAP printers to windsurf
[moira.git] / gen / sapprint.sh
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
This page took 0.034292 seconds and 5 git commands to generate.