Click to See Complete Forum and Search --> : Script to add printer


JasonRaycroft
07-10-2002, 06:08 PM
I am using samba, and want to be able to add a printer through the NT Add printer wizard. What I know is that samba calls a script, let's say /usr/bin/addprinter and presents as arguments (in order):

Printer name
Share name
Port name
Driver name
Location
Windows driver location

Has anyone written a script to add a printer with this information, or could somebody point me to a suitable reference?

I am using Redhat 7.3.

Thank you,

Jason Raycroft