Last active
February 6, 2024 14:12
-
-
Save leingang/b782762d50e362baf2c8902e1692112f to your computer and use it in GitHub Desktop.
Print to CIMS printers with stapling (bypassing Pharos)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh leingang@access.cims.nyu.edu lpr -P mf-07 -\\# 25 -o ColorMode=Gray -o StapleLocation=UpperLeft < file.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use this shell one-liner:
leingang
with your own CIMS usernamemf-07
with the printer you are printing to25
with the number of copies you wantfile.pdf
with the file name you are printing-o ColorMode=Gray
if you want color printouts-o StapleLocation=UpperLeft
if you have only a single sheet, or you don't want them stapled.-o page-ranges=m-n
to print only the pages in the range m to n-o sides=one-sided
to only get single-sided pagesNotes:
See also How to Use SSH Pipes on Linux