Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Distinguishing between directories and printers

Status
Not open for further replies.

TonyGroves

Programmer
Aug 13, 2003
2,389
IE
I have a Perl script on my Linux laptop which mounts under /smb all the available shares on whichever Windows network I'm connected to. It uses smbtree to get the list of shares, but that doesn't distinguish between directories and printers, and I can't figure out any other reasonably simple way to distinguish between a directory and a printer before deciding to mount it, or even after mounting it.

So, the question is: how do you distinguish between a shared directory and a shared printer?

(By the way, I don't know how I got to the top of this forum's MVP list; I'm very much a beginner with Samba!)
 
I've just discovered smbclient -L, so I think I'm in business now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top