[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Need help with Printer lpr problem



bob gibbons wrote:

...snip...

>   cat test.ps | lpr -Plp1
>
> generates,
>
>   lpr: connect: Connection refused
>   job queued, but cannot start daemon
>
> -PPro600 generates the same message.
>

The name of your local printer is: "lp1|Pro600". Although, I don't know why
you want a pipe "|" in the middle of the printer name. The lpr command and OS
will get confused.

You can use "cat <filename> | lpr -Plp1|Pro600" or "lpr -Plp1|Pro600
<filename>". Again, the print command will get confused with the pipe symbol!
Void all quotation marks.


> ##PRINTTOOL3## LOCAL POSTSCRIPT 600x600 letter {} PostScript Default {}
> lp1|Pro600:\
>         :sd=/var/spool/lpd/lp1:\
>         :mx#0:\
>         :lp=/dev/lp1:\
>         :if=/var/spool/lpd/lp1/filter:\
>         :sh:

...snip...


     ##PRINTTOOL3## LOCAL cdj550 300x300 letter {} DeskJet550 24 {}
     <printer_name>:\
             :sd=/var/spool/lpd/lp:\
             :mx#0:\
             :sh:\
             :lp=/dev/lp1:\
             :if=/var/spool/lpd/lp/filter:

Above is a sample (everything was on its own line before sending) of my
printer script. I'm not sure if the order is necessary, but it seems logical
that the script to process the print request (filter) should be last. "sh" is
suppress header and that is something "filter" needs to know. Also, you might
want to check out the "sd" line. Having it end in lp1 is suppose to be the
spool directory location. Changing it to "lp" is probably your directory
structure.

A word of caution: make sure all "\" and ":" are in there proper places.

*********************************************************************
Signed,
Daniel D. Munden




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]