New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Using Lpadmin


Post Reply New Thread Subscribe

 
Thread Tools
afansher

 
Member Since: Jul 02, 2011
Posts: 3
afansher is on a distinguished road

afansher is offline
I'm trying to set up IP printers by using lpadmin in order to streamline the process. My goal is to make an applescript application that will run a set of terminal commands that set up 3 different network printers. I would like to use the drivers that came with OSX and the problem I am running into is lpadmin -P wants drivers using the extension .PPD, however all of the OSX printer drivers are archived as .GZ files.

I get this message when I run the command pointing to the .GZ file ---

Expected PPD after '-P' option!

Its adds the printer but sets it up as a Local Raw Printer


This is where I am stuck, I was hoping to find a way to set up the printers in the GUI and then view and copy the settings in the terminal but couldn't figure out how to do this, lpstat seems like it would do this but I couldn't get it to display all settings. Any help would you guys could give me would be great.



Thanks
QUOTE Thanks
MacsWork

 
MacsWork's Avatar
 
Member Since: May 22, 2005
Location: Closer than you think.
Posts: 2,145
MacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really nice
Mac Specs: Performa 6116 2GBSCSI 8MB OS 7.5.3

MacsWork is offline
lpadmin -p Printer_Name -L "Printer Location" -E -v lpd://x.x.x.x
-P /Library/Printers/PPDs/Contents/Resources/en.lproj/Printer_Driver.gz

From:

Managing multiple printers via the command line - Mac OS X Hints
QUOTE Thanks
afansher

 
Member Since: Jul 02, 2011
Posts: 3
afansher is on a distinguished road

afansher is offline
Thats the whole command I'm using, however I still get the message "Expected PPD after '-P' option!" and it doesn't load the driver

Does the client have to be on the network while I'm using this command, I'm trying to set it up but not connected to the network? Using the printer setup utility I can set up the printers even if I'm not currently connected.
QUOTE Thanks
afansher

 
Member Since: Jul 02, 2011
Posts: 3
afansher is on a distinguished road

afansher is offline
Problem solved, the printer driver had spaces in the file name, I forgot to put the name in quotes. Once I did it worked great thanks for the response.
QUOTE Thanks
MacsWork

 
MacsWork's Avatar
 
Member Since: May 22, 2005
Location: Closer than you think.
Posts: 2,145
MacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really nice
Mac Specs: Performa 6116 2GBSCSI 8MB OS 7.5.3

MacsWork is offline
Good Job.
QUOTE Thanks

Post Reply New Thread Subscribe


« error uploading in Firefox and Safari | Internet Connection. »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
lpadmin Access Problems TennsDog OS X - Operating System 1 09-08-2009 05:03 PM

All times are GMT -4. The time now is 08:29 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?