Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

milk242

macrumors 6502a
Original poster
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://128.200.65.5 -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.

Thanks.
 
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.

-Lee
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.