Skip to content

Instantly share code, notes, and snippets.

@souvik1997
Last active September 1, 2016 19:31
Show Gist options
  • Save souvik1997/3c7192b28f66150166fd to your computer and use it in GitHub Desktop.
Save souvik1997/3c7192b28f66150166fd to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
# Usage: ./print-gdc.sh fileToPrint.pdf
# To specify a printer: ./print-gdc.sh fileToPrint.pdf lw301
CSID="yourcsid"
ssh "$CSID"@altoids.cs.utexas.edu "lpr -P ${2:-lw301}" < "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment