Results 1 to 5 of 5

Thread: Using Lpadmin

  1. #1
    Using Lpadmin

    Member Since
    Jul 02, 2011
    Posts
    3
    Using Lpadmin
    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

  2. #2
    Using Lpadmin
    MacsWork's Avatar
    Member Since
    May 22, 2005
    Location
    Closer than you think.
    Posts
    2,159
    Specs:
    Performa 6116 2GBSCSI 8MB OS 7.5.3
    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

  3. #3
    Using Lpadmin

    Member Since
    Jul 02, 2011
    Posts
    3
    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.

  4. #4
    Using Lpadmin

    Member Since
    Jul 02, 2011
    Posts
    3
    Solved
    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.

  5. #5
    Using Lpadmin
    MacsWork's Avatar
    Member Since
    May 22, 2005
    Location
    Closer than you think.
    Posts
    2,159
    Specs:
    Performa 6116 2GBSCSI 8MB OS 7.5.3
    Good Job.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Printer name via lpadmin?
    By jnojr in forum OS X - Operating System
    Replies: 0
    Last Post: 02-15-2013, 02:54 PM
  2. lpadmin printing error with Workgroup Manager
    By BarryWAaMC in forum OS X - Operating System
    Replies: 0
    Last Post: 09-29-2011, 09:54 AM
  3. lpadmin Access Problems
    By TennsDog in forum OS X - Operating System
    Replies: 1
    Last Post: 09-08-2009, 05:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •