Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Printing to a local printer in command line under Darwin?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing to a local printer in command line under Darwin?



Hi Liam,
I am also facing the same problem as you. I made a printer entry by the name "netprint" in Netinfo
which is similar to printcap entries. netprint is a HP Laserjet PS printer, connected onto our n/wk.
maybe the following info might just help u in finding out whether ur netinfo is properly configured or not.

"nidump printcap /" shows me the foll. output:
====================================
netprint: \
:lo=netlock:rm=192.151.103.229:rp=lp:sd=/var/spool/lpd/netprint: \
:lp=/dev/null/:
====================================
With the same settings as above, initially I got it to work, through "lpr psFilename".

However as I was fiddling out something more with Netinfo, I am not sure what made it to stop.
Since then I have checked all my settings, but the job just queues up in the spool directory.

cat /var/spool/lpd/netprint/status gives the foll. o/p
====================================
waiting for netprint to become ready (offline ?)
====================================

lpq -Pnetprint gives the foll. o/p
====================================
Warning: unable to get official name for local machine localhost
Warning: no daemon present
Rank Owner Job Files Total Size
1st root 0 ... 357067 bytes
2nd root 1 ... 357067 bytes
====================================

Can anyone help me(& Liam) out with this one ?

Even otherwise I have several queries wrt to the above netinfo entry.
As per man printcap
lp str /dev/lp device name to open for output
1) How come I got it working with the entry "lp:/dev/null" ? (there is no /dev/lp in MacOS-X)
2) How do I eliminate the warnings of lpq's o/p.
I have the daemon(/usr/libexec/lpd) running, even then this warning crops up.
3) Even the 1st time round, when I had the printer working with lpr, there were problems with status printing.
The job got printed, but "cat status" still used to say "printing to netprint...whatever.".
4) Apple advises to use the tool /usr/sbin/Print instead of lpr, but it never worked for me. Has any1 been successfull in
making it work ?. For me it gives this error msg (ERROR: Unable to print.)

Any leads appreciated.

TIA,
Suhail.
PS: My system is G4-OS X(10.1.4)- just in case.


On Wednesday, March 6, 2002, at 11:30 PM, Liam wrote:

on 06/3/02, at the evil hour of 1:26 PM +0100, Markus Hitter wrote:
Am Dienstag den, 5. Mdrz 2002, um 21:56, schrieb Martin Costabel:

This has been said before; you *can* print via lpr to *network*
printers; you *cannot* print via lpr nor over the network from a remote
OSX machine to *USB* printers.

As long as there's any way to send bytes to the printer and there's a way to "convert" you print file to something the printer understands, you can set up an lpr printer.

Well, as I don't have an USB printer, I can't say for sure, but usually, coding a little output filter for lpr should work.

Do you mean like we do Unix?

My problem is that I can't seem to get netinfo to recognize the whole printer thing.
It just queues my print jobs and never sends them off.
I know I'm doing something wrong, but what?


All the posted solutions so far have involved PPD files, for postscript printers.
anyone have a clue-by-four to get NON POST SCRIPT printers working with Netinfo and lpr?


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
darwinos-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwinos-users
Do not post admin requests to the list. They will be ignored.


-- William C. Allen, BLS, EET
email@hidden
www.infomatrix.ca
_______________________________________________
darwinos-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwinos-users
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.