Skip to content

Instantly share code, notes, and snippets.

@rmanly
Last active June 18, 2018 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rmanly/bf28847ddec8e3f0bd03 to your computer and use it in GitHub Desktop.
Save rmanly/bf28847ddec8e3f0bd03 to your computer and use it in GitHub Desktop.
disables sharing on all printers.
#!/bin/bash
while read -r _ _ printer _; do
/usr/sbin/lpadmin -p "${printer/:}" -o printer-is-shared=false
done < <(/usr/bin/lpstat -v)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment