AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only

Defining a samba script as a printer in AIX

  • 1.  Defining a samba script as a printer in AIX

    Posted 03/18/08 11:12 AM

    Originally posted by: SystemAdmin


    I've got a modified samba script (named it winprint) that I can use to print out to a to a shared Win Network printer from an AIX machine. This is a modification of the samba provided smbprint script changed to work under AIX as the backend for a queue. It does not read a config file

    I can print the passwd file to the Win printer using the command: $ ./winprint /etc/passwd

    However I can’t seem to define the script as a printer in the qconfig as mentioned below.

    winprint:
    device = dwinprint
    up = TRUE
    discipline = sjn
    dwinprint:
    backend = /usr/local/samba/lib/printers/winprint

    lpstat -t shows that this printer wasn't defined and when I try to print with lp –d winprint /etc/passwd I get the error : “lp: The printer or class was not found.”

    Is it just a matter of config? as I can use the script to print already.

    Thanks in advance..
    #AIX-Forum