#!/bin/sh

# Change the READY status message on the screen of a compatible
# HP LaserJet network printer.
# Suggestions: "FEED ME A CAT" or "OUT OF CRAYONS"

PRINTER=192.168.x.x

test "$1" = "" && echo "Enter a message..." && exit 1
echo '@PJL RDYMSG DISPLAY="'"$1"\" | socat -u - tcp-connect:$PRINTER:9100

