Funny: Change the HP Laserjet ‘ready’ message

To change the 'ready' message of a HP Laserjet, you can use the following script.

#!/usr/bin/perl
use strict;
use warnings;
 
unless (@ARGV) { print "usage: $0 <ip address> \"<message>\"\n" ; exit }
 
my $ip = $ARGV[0];
shift(@ARGV);
chomp $ip;
 
use IO::Socket;
my $socket = IO::Socket::INET->new(
	PeerAddr  => $ip, PeerPort  => "9100",
	Proto     => "tcp", Type      => SOCK_STREAM
	) or die "Could not create socket: $!";
 
print $socket "\e%-12345X\@PJL JOB\n\@PJL RDYMSG DISPLAY=\"@ARGV\"\n\@PJL EOJ\n\e%-12345X\n";

I've used this at the office, with a lot of hilarious reactions from my colleagues. Messages like:

  • Please insert kitten in tray 1
  • Please insert [name of colleague] in tray 1
  • Virus detected
© GeekLabInfo Funny: Change the HP Laserjet 'ready' message is a post from GeekLab.info. You are free to copy materials from GeekLab.info, but you are required to link back to http://www.geeklab.info

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...