How to direct non-Photon print jobs to the spooler

Hello.

Based on all of the literature I have read on the QNX homepage, the
stuff in the helpviewer and the visual indications found in the prjobs
utility, I would assume that it is possible to use the spooler daemon to
handle all print jobs, as opposed to having a spooler/lpd mix.
Currently, I have configured my QRTP box to use lpd for all the command
line printing and I use the spooler and ncftpput to print the Photon
print jobs. What I would like to know is: how do I direct the cmd line
stuff to spooler? I attempted to write to the jobs
/dev/printers//spool and the /var/spool/
directories, but that didn’t work (and I think wrecked the printer
definition for good - had to create a new printer after that :frowning: ).

So, if anyone would inform me of the proper way to send non-Photon print
jobs to the spooler, I would really appreciate it.

Thanks.

Rodney

have you tried stuff below?

echo Hello, World | lpr


Rodney Lott wrote:

Hello.

Based on all of the literature I have read on the QNX homepage, the
stuff in the helpviewer and the visual indications found in the prjobs
utility, I would assume that it is possible to use the spooler daemon to
handle all print jobs, as opposed to having a spooler/lpd mix.
Currently, I have configured my QRTP box to use lpd for all the command
line printing and I use the spooler and ncftpput to print the Photon
print jobs. What I would like to know is: how do I direct the cmd line
stuff to spooler? I attempted to write to the jobs
/dev/printers//spool and the /var/spool/<printer-name
directories, but that didn’t work (and I think wrecked the printer
definition for good - had to create a new printer after that > :frowning: > ).

So, if anyone would inform me of the proper way to send non-Photon print
jobs to the spooler, I would really appreciate it.

Thanks.

Rodney


BR, Andrej

I don’t have trouble printing using lpr. As I mentioned in my posting,
I use lpr/lpd
quite extensively.

So, let me rephrase: How can I replace lpd with the new spooler utility
that comes
with QRTP?

Sorry for the confusion.

Rodney

Andrej Timchenko wrote:

have you tried stuff below?

echo Hello, World | lpr

Rodney Lott wrote:

Hello.

Based on all of the literature I have read on the QNX homepage, the
stuff in the helpviewer and the visual indications found in the prjobs
utility, I would assume that it is possible to use the spooler daemon to
handle all print jobs, as opposed to having a spooler/lpd mix.
Currently, I have configured my QRTP box to use lpd for all the command
line printing and I use the spooler and ncftpput to print the Photon
print jobs. What I would like to know is: how do I direct the cmd line
stuff to spooler? I attempted to write to the jobs
/dev/printers//spool and the /var/spool/<printer-name
directories, but that didn’t work (and I think wrecked the printer
definition for good - had to create a new printer after that > :frowning: > ).

So, if anyone would inform me of the proper way to send non-Photon print
jobs to the spooler, I would really appreciate it.

Thanks.

Rodney


BR, Andrej

Hi,

Just in case you haven’t already read this there is spooler info
in the work in progress system admin guide located at
http://qdn.qnx.com/support/docs/sysadmin/index.html

Hope this helps,

Barry

Rodney Lott <rod@fuelcelltechnologies.ca> wrote:

I don’t have trouble printing using lpr. As I mentioned in my posting,
I use lpr/lpd
quite extensively.

So, let me rephrase: How can I replace lpd with the new spooler utility
that comes
with QRTP?

Sorry for the confusion.

Rodney

Andrej Timchenko wrote:

have you tried stuff below?

echo Hello, World | lpr

Rodney Lott wrote:

Hello.

Based on all of the literature I have read on the QNX homepage, the
stuff in the helpviewer and the visual indications found in the prjobs
utility, I would assume that it is possible to use the spooler daemon to
handle all print jobs, as opposed to having a spooler/lpd mix.
Currently, I have configured my QRTP box to use lpd for all the command
line printing and I use the spooler and ncftpput to print the Photon
print jobs. What I would like to know is: how do I direct the cmd line
stuff to spooler? I attempted to write to the jobs
/dev/printers//spool and the /var/spool/<printer-name
directories, but that didn’t work (and I think wrecked the printer
definition for good - had to create a new printer after that > :frowning: > ).

So, if anyone would inform me of the proper way to send non-Photon print
jobs to the spooler, I would really appreciate it.

Thanks.

Rodney


BR, Andrej

Hi, Barry.

I have actually read it and I just read it again to refresh my memory.
So my question is: can you use spooler for non-Photon printing? In the
WIP sysadmin guide, it states that spooler is used for Photon print
jobs, which would suggest that it can ONLY be used for Photon print
jobs, and not print jobs that (hypothetically) could be redirected by
lpd, say. Is there a way to set up the /etc/printcap so that when I use
lpr I can redirect the print job to spooler (safely)? I assume that an
lpd print job is not the same as a spooler print job and thus cannot be
written to /dev/printers/<printer_name>/spool or into the spool
directory found in the /var/spool/printers/ ( I tried both

  • the former did nother and the later, well, the aftermath wasn’t
    pretty! ).

To reiterate, I do have Photon printing working using spooler without
difficulties. I have lpd working with my non-Photon printjobs. What I
am interesting in is the possibility of using JUST spooler. I am
starting to believe that this is not possible, but I wanted to see if it
was, since the drop down combo box in the prjobs Photon utility seemed
to indicate that it was possible that spooler could handle both
non-Photon and Photon related print jobs.

I hope that I am being clear in what I am asking. I am not asking how
to get printing working in each of the separate cases. I am wanting to
use ONLY spooler to do ALL of my printing.

Thanks.

Rodney

Operating System for Tech Supp wrote:

Hi,

Just in case you haven’t already read this there is spooler info
in the work in progress system admin guide located at
http://qdn.qnx.com/support/docs/sysadmin/index.html

Hope this helps,

Barry

Rodney Lott <> rod@fuelcelltechnologies.ca> > wrote:
I don’t have trouble printing using lpr. As I mentioned in my posting,
I use lpr/lpd
quite extensively.

So, let me rephrase: How can I replace lpd with the new spooler utility
that comes
with QRTP?

Sorry for the confusion.

Rodney

Andrej Timchenko wrote:

have you tried stuff below?

echo Hello, World | lpr

Rodney Lott wrote:

Hello.

Based on all of the literature I have read on the QNX homepage, the
stuff in the helpviewer and the visual indications found in the prjobs
utility, I would assume that it is possible to use the spooler daemon to
handle all print jobs, as opposed to having a spooler/lpd mix.
Currently, I have configured my QRTP box to use lpd for all the command
line printing and I use the spooler and ncftpput to print the Photon
print jobs. What I would like to know is: how do I direct the cmd line
stuff to spooler? I attempted to write to the jobs
/dev/printers//spool and the /var/spool/<printer-name
directories, but that didn’t work (and I think wrecked the printer
definition for good - had to create a new printer after that > :frowning: > ).

So, if anyone would inform me of the proper way to send non-Photon print
jobs to the spooler, I would really appreciate it.

Thanks.

Rodney


BR, Andrej