Skip to content

Instantly share code, notes, and snippets.

@AlexeyMK
Created January 19, 2012 18:18
Show Gist options
  • Save AlexeyMK/1641629 to your computer and use it in GitHub Desktop.
Save AlexeyMK/1641629 to your computer and use it in GitHub Desktop.
Seasprint (free printing from the command line on eniac)
# Put in .bashrc
# By Matt Croop, but originally by Jon McCaffrey or Ryan Gormley or something.
# Usage: seasprint foo.pdf
function seasprint() {
cat "$1" | ssh [email protected] lpr -P169
}
#Usage: listprinters
function listprinters() {
ssh [email protected] lpstat -o -p -d
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment