Issuing a printer fault alert

To arrange for the print service to issue an alert in the event of a printer fault, enter one of the following commands:

  •   /usr/sbin/lpadmin -p printer-name -A mail -W minutes
    
  • /usr/sbin/lpadmin -p printer-name -A write -W minutes
  • /usr/sbin/lpadmin -p printer-name -A 'command' -W minutes

The first two commands direct the print service to send you a mail message or write the message directly to your terminal, respectively, for each alert. The third command directs the print service to run the command command for each alert. The shell environment currently in effect when you enter the third command is saved and restored for the execution of command. The environment includes environment variables, user and group IDs, and current directory. The minutes argument is the number of minutes between repeated alerts.