Last active
October 10, 2025 16:25
-
-
Save leingang/b782762d50e362baf2c8902e1692112f to your computer and use it in GitHub Desktop.
Print to CIMS printers with stapling (bypassing Pharos)
This file contains hidden or 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
| alias sshlpr='ssh [email protected] lpr -P mf-07 -o sides=two-sided-long-edge -o StapleLocation=UpperLeft' |
This file contains hidden or 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 [email protected] lpr -P mf-07 -\\# 25 -o sides=two-sided-long-edge -o ColorMode=Gray -o StapleLocation=UpperLeft < file.pdf |
I wanted to find an lpr option to print (labels) using the manual feed on bwpr23, but it doesn't seem to have such an option.
Options have changed a bit since I last used this. Double check stapling and color next time you get a chance.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use this shell one-liner:
mpl5with your own NYU NetIDmf-07with the printer you are printing to25with the number of copies you wantfile.pdfwith the file name you are printing-o ColorMode=Grayif you want color printouts-o StapleLocation=UpperLeftif you have only a single sheet, or you don't want them stapled.-o sides=two-sided-long-edgeto only get single-sided pages-o page-ranges=m-nto print only the pages in the range m to nNotes:
See also How to Use SSH Pipes on Linux