Last active
December 22, 2016 21:12
-
-
Save ziggythehamster/d80910a91da5b582096a9f05c2793d1c to your computer and use it in GitHub Desktop.
Send PJL command to a LaserJet to configure the density
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
# see http://g2100config.cvs.sourceforge.net/viewvc/g2100config/g2100config/console/2100config.c?view=markup for a list | |
# of commands that you might want to run. \ez prints a single page self test page. | |
ruby -e 'print "\e%-12345X@PJL\r\n@PJL DEFAULT DENSITY=5\r\n\e%-12345X\r\n\ez\r\n"' | nc 192.168.0.10 9100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment