Neat little script. As side note this will only work with either single port jetdirect cards. the multiport units use a different TCP port for each printer connected to it. The ports are
Printer port 1 -- 9100
Printer port 2 -- 9101
Printer port 3 -- 9102
A list of all the Ports used by the jet direct can be found here . If you wanted to be real mean you could have threatened to use the print test page codes