Shellscripting

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

  1. milk242 macrumors 6502a

    Joined:
    Jun 28, 2007
    #1
    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.
     
  2. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2
    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
     

Share This Page