From f4e19b17ea605549915cc8bead157400356b5e12 Mon Sep 17 00:00:00 2001 From: nnposter Date: Sat, 14 Nov 2020 23:29:05 +0000 Subject: [PATCH] Change PJL command termination from LF to CR/LF The PJL specification (HP publication 5021-0380) makes the CR optional but apparently it is required by some implementations. Fixes #2182 --- scripts/pjl-ready-message.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pjl-ready-message.nse b/scripts/pjl-ready-message.nse index bdcd8c125..a77f60fc9 100644 --- a/scripts/pjl-ready-message.nse +++ b/scripts/pjl-ready-message.nse @@ -45,7 +45,7 @@ action = function(host, port) local statusmsg --stores the PJL command to get the printer's status local response --stores the response sent over the network from the printer by the PJL status command - statusmsg="@PJL INFO STATUS\n" + statusmsg="@PJL INFO STATUS\r\n" local rdymsg="" --string containing text to send to the printer. local rdymsgarg="" --will contain the argument from the command line if one exists