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 329B

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