Last active
December 15, 2015 04:18
-
-
Save rmanly/5200035 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# sets cups to abort-job instead of default stop-job | |
# for all currently installed printers | |
shopt -s nullglob | |
for file in /etc/cups/ppd/* ; do | |
path="${file%.ppd}" | |
name="${path##*/}" | |
lpadmin -p "${name}" -o printer-error-policy=abort-job | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment