Last active
September 16, 2024 21:10
-
-
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:
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 sides=two-sided-long-edge
to only get single-sided pages-o page-ranges=m-n
to print only the pages in the range m to nNotes:
See also How to Use SSH Pipes on Linux