Miscellaneous script for my everyday usage.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

print-oh14 327B

12345678910111213
  1. #!/usr/bin/env zsh
  2. # Print a file with ohs14pr1 (a printer at TU Dortmund). This requires "czi" to be defined as hostname in .ssh/config.
  3. # Arg 1: File to print
  4. # Arg 2: -s for simplex, default is duplex
  5. if [[ ${2} = "-s" ]] then
  6. DUPLEX="simplex"
  7. else
  8. DUPLEX="duplex"
  9. fi
  10. ssh czi lpr -P ohs14pr1 -N0 -K$DUPLEX < ${1}