QNX network printing support

I understand how to get QNX to generate a PostScript file.
But how do I get it to send the file to a PostScript
compatible printer on a TCP/IP LAN? “spooler” seems
to assume that the printer is on a parallel port.

John Nagle

John Nagle <nagle@downside.com> wrote:

I understand how to get QNX to generate a PostScript file.
But how do I get it to send the file to a PostScript
compatible printer on a TCP/IP LAN? “spooler” seems
to assume that the printer is on a parallel port.

John Nagle

If the printer can support ftp upload, you can use ncftpput

Filter = ps:$d:ncftpput -V -E power_lex /prt0

or you could use lpr

Robert Rutherford wrote:

The incomplete and largely out-of-date SysAdmin guide describes how to do
this.

Regarding being out of date, here’s a quote from that document:

“The following example is for a DecWriter III printer connected
locally via a 1200 baud serial line.”.

It’s at > http://www.qnx.com/developer/docs/qnx_6.1_docs/sysadmin/index.html

Have a look for the section called “Remote printing to a TCP/IP enabled
printer using spooler”

Basically you create a print filter for spooler that actually redirects
output to lpr which then sends it across the network to your lpd printer.

I read the document, but much is unclear.

The document says that print files are sent to the remote spooler
for printing, but it’s vague on how that’s done. Does it use Internet
Printing Protocol (IPP), or what? Will this interoperate with
commercially available network printers? Windows 2000 IPP? Linux?
Or do you have to hang the printer on the parallel port of a QNX box?

Is there some means for remote printer discovery?

John Nagle

Hope this helps,

Rob Rutherford
Ruzz Technology

“John Nagle” <> nagle@downside.com> > wrote in message
news:bcrl55$rp4$> 1@inn.qnx.com> …

I understand how to get QNX to generate a PostScript file.
But how do I get it to send the file to a PostScript
compatible printer on a TCP/IP LAN? “spooler” seems
to assume that the printer is on a parallel port.

John Nagle
\

The incomplete and largely out-of-date SysAdmin guide describes how to do
this.
It’s at http://www.qnx.com/developer/docs/qnx_6.1_docs/sysadmin/index.html

Have a look for the section called “Remote printing to a TCP/IP enabled
printer using spooler”

Basically you create a print filter for spooler that actually redirects
output to lpr which then sends it across the network to your lpd printer.

Hope this helps,

Rob Rutherford
Ruzz Technology

“John Nagle” <nagle@downside.com> wrote in message
news:bcrl55$rp4$1@inn.qnx.com

I understand how to get QNX to generate a PostScript file.
But how do I get it to send the file to a PostScript
compatible printer on a TCP/IP LAN? “spooler” seems
to assume that the printer is on a parallel port.

John Nagle

“John Nagle” <nagle@overbot.com> wrote in message
news:3EF22A35.9030307@overbot.com

I read the document, but much is unclear.

The document says that print files are sent to the remote spooler
for printing, but it’s vague on how that’s done. Does it use Internet
Printing Protocol (IPP), or what? Will this interoperate with
commercially available network printers? Windows 2000 IPP? Linux?
Or do you have to hang the printer on the parallel port of a QNX box?

The document shows you how to hook spooler into the command line.

Your first step should be to get to the point where you can print a test
postscript file from the command line, you then use the above technique to
hook this into spooler.

There are many options for printing from the command line:

  • Most network printers support the lpr/lpd protocol so you can just use lpd
    (with the appropriate /etc/printcap file). For example all HP network
    printers support this (this is what we use).
  • Or if you want to print to a printer on a Linux box you can run lpd on the
    Linux box and use lpr/lpd to spool to that printer.
  • Or you can just use rsh to print to the Linux box (something like "cat
    $spoolfile | rsh ")
  • Or if your printer sypports ftp you can use a command-line ftp client
    (like Colin originally suggested)
  • Or I believe you can use Samba to print to Windows printers (never tried
    this personally)

I’m not familiar with what IPP options are available.

Hope this helps,

Rob Rutherford

“John Nagle” <nagle@overbot.com> wrote in message
news:3EF22A35.9030307@overbot.com

Robert Rutherford wrote:
The incomplete and largely out-of-date SysAdmin guide describes how to
do
this.

Regarding being out of date, here’s a quote from that document:

“The following example is for a DecWriter III printer connected
locally via a 1200 baud serial line.”.

Out of date!

Boy, my LA-36 DecWriter III only supported 110, 150 and 300 BPS.
You got a screamer there!