adding printers via command line

From: Bill Boyd <bboyd_at_astro.berkeley.edu>
Date: Wed, 19 Nov 2008 11:48:00 -0800

Greetings Fellow Mac Admins,

I have been trying to add a new LPD printer to a bunch of Macs via
command line so as not to interfere with user sessions.

I tried:
1) The Linux approach: Adding the PPD file to /etc/cups/ppd;
editing /etc/cups/printers.conf; restarting cupsd
        This appeared to add a printer, but that queue fails to send a data
file to the LPD print server. The server log says:
        "Job ID 542 has no files! Canceling it!"

2) The lpadmin approach: lpadmin -p queuename -E -v lpd://server/
queue -m ppdfile
        This also appeared to add a printer, but again the queue fails to
send a data file to the LPD print server.

When I add the printer using the Mac OS GUI, it works.

Can anyone share their successful method of command line printer
addition on a Mac? Am I missing some plist entry? I already tried
repairing permissions after adding the printers via methods 1) and 2).

Thanks!
Bill

----------------------------------------------------------
Bill Boyd
System Administrator UCB Astronomy
bboyd_at_astro.berkeley.edu

 
-------------------------------------------------------------------------
The following was automatically added to this message by the list server:

To learn more about MAGNet, including how to subscribe to or unsubscribe from its mailing list, please visit the MAGNet Web site:

http://magnet.berkeley.edu

Messages you send to this mailing list are public and world-viewable, and the list's archives can be browsed and searched on the Internet. This means these messages can be viewed by (among others) your bosses, prospective employers, and people who have known you in the past.
Received on Wed Nov 19 2008 - 11:49:11 PST

This archive was generated by hypermail 2.2.0 : Wed Nov 19 2008 - 11:49:13 PST