Skip to content

Instantly share code, notes, and snippets.

@ziggythehamster
Last active December 22, 2016 21:12
Show Gist options
  • Save ziggythehamster/d80910a91da5b582096a9f05c2793d1c to your computer and use it in GitHub Desktop.
Save ziggythehamster/d80910a91da5b582096a9f05c2793d1c to your computer and use it in GitHub Desktop.
Send PJL command to a LaserJet to configure the density
# 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