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-fsr 277B

12345678910111213
  1. #!/usr/bin/env zsh
  2. # Print a file with the FSR office printer.
  3. # Arg 1: File to print
  4. # Arg 2: -s for simplex, default is duplex
  5. if [[ ${2} = "-s" ]] then
  6. DUPLEX="one-sided"
  7. else
  8. DUPLEX="two-sided-long-edge"
  9. fi
  10. ssh eins lpr -P LaserJetBüro -o sides=$DUPLEX < ${1}