Discussion in 'Mac Programming' started by milk242, Apr 28, 2008.

  1. milk242 macrumors 6502a

    Jun 28, 2007
    Hi all,

    I'm trying to make a shell command that installs a network printer that uses PPD .gz files located on a network share. I'm not really sure on how to get the script to locate the network share or if its even possible. This is what my script looks like now

    /usr/sbin/lpadmin -p Xerox -E -v lpd:// -P /Library/printers/PPDs/Contents/Resources/wcp255.gz -D "Xerox printer yay"

    I essentially want to replace /Library/printers/PPDs/Contents/Resources/wcp255.gz with a network path instead of a local path. The network share is also on a windows server.

  2. lee1210 macrumors 68040


    Jan 10, 2005
    Dallas, TX
    I don't have the commands, but I'd say smbclient to grab the driver from the windows share, put it in the proper location, then run the command to add the printer.


Share This Page