[Samba] HOW do I look into a Windows print queue with smbcient?? [was: "Printing using smbclient "]

Kurt Pfeifle kpfeifle at danka.de
Tue Nov 12 00:56:00 GMT 2002


Steven L Hawks wrote on Samba-Digest:

> Message: 15
> To: samba at samba.org
> Cc: samba-vms at samba.org <samba-vms at samba.org>
> From: "Steven L Hawks" <SLHawks at cltco.com>
> Date: Mon, 11 Nov 2002 14:57:33 -0500
> Subject: [Samba] Printing using smbclient
> 
> I can see the windows client from my DG-UNIX server.
> 
> # /usr/local/samba/bin/smbclient -L publicaud
> Added interface ip=192.168.168.25 bcast=192.168.168.255 nmask=255.255.255.0
> Server time is Mon Nov 11 16:10:22 2002
> Timezone is UTC-5.0
> security=share
> 
> Server=[PUBLICAUD] User=[] Workgroup=[AUDITOR] Domain=[AUDITOR]
> 
>         Sharename      Type      Comment
>         ---------      ----      -------
>         FX900          Printer
>         IPC$           IPC       Remote Inter Process Communication
>         PRINTER$       Disk
> 
> # lp -d fx900 /.profle
> UX:lp: ERROR: Destination "fx900" is unknown to the
>         LP print service.
> 
> How do I print to it?

That's easy:

   smbclient //publicaud/FX900 -U username -c "print file-to-be-printed"

(See "man smbclient").

*My* problem is: How do I look into the Windows queue then? I've
asked for some advice a couple of days ago on this list, but so
far didn't find a gracious soul to enlighten me...

 From the man page and from the "smb: \>" prompt (by typing "help
queue"), one would conclude it *should* work with

   smbclient //publicaud/FX900 -U username -c "queue"

but it doesn't for me.... I'd regard that function currently as broken
for Samba (2.2.4|2.2.6) trying to look into a  Windows 2K/XP queue
(these are the versions I was able to "test" this on...)

> Steven L. Hawks
> External IT Support
> Cole-Layer-Trumble Company
> (937) 276-5261 x 235

Cheers,
Kurt







More information about the samba mailing list