<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PJL in script or C in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pjl-in-script-or-c/m-p/3419712#M707271</link>
    <description>I need to check the status of a network printer, preferable within the (ANSI C) application, before the application sends a job to the printer. It sounds like PJL is the key, but I can't find difinitve docs or examples. I even have the printed book from HP, but there are too many unknowns left to perform the task. It says there is a way to receive messages from the printer, but it doesn't explain how. I am using HP-UX 11i, korn shell, and have laserjet4v and 5000N printers.&lt;BR /&gt;Thanks in advance!</description>
    <pubDate>Wed, 10 Nov 2004 16:12:10 GMT</pubDate>
    <dc:creator>Tim Howell</dc:creator>
    <dc:date>2004-11-10T16:12:10Z</dc:date>
    <item>
      <title>PJL in script or C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pjl-in-script-or-c/m-p/3419712#M707271</link>
      <description>I need to check the status of a network printer, preferable within the (ANSI C) application, before the application sends a job to the printer. It sounds like PJL is the key, but I can't find difinitve docs or examples. I even have the printed book from HP, but there are too many unknowns left to perform the task. It says there is a way to receive messages from the printer, but it doesn't explain how. I am using HP-UX 11i, korn shell, and have laserjet4v and 5000N printers.&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Wed, 10 Nov 2004 16:12:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pjl-in-script-or-c/m-p/3419712#M707271</guid>
      <dc:creator>Tim Howell</dc:creator>
      <dc:date>2004-11-10T16:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: PJL in script or C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pjl-in-script-or-c/m-p/3419713#M707272</link>
      <description>If I'm not mistaken, most status checks of network devices (including printers) is done via "snmp".&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Wed, 10 Nov 2004 16:13:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pjl-in-script-or-c/m-p/3419713#M707272</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-11-10T16:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: PJL in script or C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pjl-in-script-or-c/m-p/3419714#M707273</link>
      <description>You open a TCP connection with the printer and send a PJL command to retrieve the status of the device with commands like @PJL INFO VARIABLES or @PJL INQUIRE &lt;VARIABLE&gt;. This will return amongst lots of other information messages like toner low, paper out etc. Personally I prefer unsolicitied status messages (@PJL USTATUSON) The printer sends device/job/page message when a particular event occurs (the device goes offline, a job is printed or a page is complete). This requires that when you're sending data to the printer you periodically read from the port to see if there are any messages pending.&lt;/VARIABLE&gt;</description>
      <pubDate>Thu, 11 Nov 2004 02:56:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pjl-in-script-or-c/m-p/3419714#M707273</guid>
      <dc:creator>Johan_52</dc:creator>
      <dc:date>2004-11-11T02:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: PJL in script or C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pjl-in-script-or-c/m-p/3419715#M707274</link>
      <description>Thanks Rod, I will investigate that as well.&lt;BR /&gt;&lt;BR /&gt;Johan, I have tried that but got no response. Perhaps I did not do it right. I treated the printer as the server and had the tcp client connect on port 9100. (I stumbled on that port in the hpnpf man page)I achieved a connection and sent commands, but the printer did not return anything...(?)&lt;BR /&gt;&lt;BR /&gt;Thanks again.</description>
      <pubDate>Thu, 11 Nov 2004 08:09:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pjl-in-script-or-c/m-p/3419715#M707274</guid>
      <dc:creator>Tim Howell</dc:creator>
      <dc:date>2004-11-11T08:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: PJL in script or C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pjl-in-script-or-c/m-p/3419716#M707275</link>
      <description>Hi Tim&lt;BR /&gt;&lt;BR /&gt;The attached [ modified ] excerpt from my pjl driver retrieves the configuration information from a PJL printer. I know the recv loop could be implemented smarter, but as is it shows best what needs to be done.&lt;BR /&gt;Compile with the -D_SOCKET_SOURCE and -D_HPUX_SOURCE options and execute specifying the printer name and port on the command line. If this example does not work I think you should check printer and / or network settings, but I'm afraid I can't help you there much further.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Johan</description>
      <pubDate>Mon, 15 Nov 2004 03:12:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pjl-in-script-or-c/m-p/3419716#M707275</guid>
      <dc:creator>Johan_52</dc:creator>
      <dc:date>2004-11-15T03:12:08Z</dc:date>
    </item>
  </channel>
</rss>

