<pre>Hi all,<br><br>I would like to assign different network printers to different thin clients based on their location around the lan. I think I could modify<br>the script below to do this with some help from folks here. I excerpted this from 
<a href="http://wiki.ltsp.org/twiki/bin/view/Ltsp/ManagingUserConfiguration#Default_printer">http://wiki.ltsp.org/twiki/bin/view/Ltsp/ManagingUserConfiguration#Default_printer</a><br><br>I've attached a windows network printer using smb but I don't know how to call it using this script. How do I identify it from the command line and assign it here?
<br><br>I didn't see anything lpoptions to display the printer name, but I figure if I knew how the system sees it I could paste it in below. <br>Is there a better way to do this?<br><br>Thanks!<br><br>John<br><br><br>
# Sets the default printer based on physical location (specifically,<br># by workstation).  Also sets default printer settings.<br>#<br>#<br><br>function set_printer_defaults<br>{<br>        if [ "$CLIENT" = "
localhost.localdomain" ];<br>        then<br>                # it is hard to find physical location with VNC<br>                set_printer_defaults_manual<br><br>        else<br>                set_default_printer_helper "printer1" "ws001 ws002 ws003"
<br>                set_default_printer_helper "printer2" "ws004 ws004 ws006"<br>        fi<br>}<br></pre>