PDA

View Full Version : Shellscripting




milk242
Apr 28, 2008, 09:00 PM
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.



lee1210
Apr 28, 2008, 11:34 PM
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