Skip to content

Instantly share code, notes, and snippets.

@rmanly
Last active December 15, 2015 04:18
Show Gist options
  • Save rmanly/5200035 to your computer and use it in GitHub Desktop.
Save rmanly/5200035 to your computer and use it in GitHub Desktop.
#!/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