#!/bin/sh # # @(#)prntfault.sh 1.3 # # This file will live in $PRNTFAULT_PATH. All servers that need to do # something on printer faults should add their lines to this file on # installation and remove them on removal. When printers are administered # into a server (as when they are shared), the server should set the printer # fault alert string to this script. This script should be called with 1 # argument, the printer name. # # All entries should follow this format: # if [ -x "server_specific_alert_script" ] #From short_package_name # then #From short_package_name # server_specific_alert_script $1 #From short_package_name # fi #From short_package_name # # This file will be created by the Install scripts if it doesn't exist. # The Install scripts will also put the server-specific lines in this file. # # Other information on this file: # owner lp # group other # perms 755 (-rwxr-xr-x) # . lmpaths TMPLOG=/tmp/prlg$$ trap 'rm -f $TMPLOG ' 0 cat > $TMPLOG if [ -x "$PRALERTER_PATH" ] #From Advanced Server for UNIX Systems then #From Advanced Server for UNIX Systems $PRALERTER_PATH $1 < $TMPLOG #From Advanced Server for UNIX Systems fi #From Advanced Server for UNIX Systems