ca99a7c61e
by Frank Schwanz. It uses the Samba software suite for an easy access to the SMB shares of your local network neighborhood. Features so far: - Scanning for (active) workgroups, hosts, and shares - Mounting and unmounting of SMB and CIFS shares, including unmounting all shares at once - Access to the files of a mounted SMB or CIFS share using Konqueror - Auto-detection of external mounts/unmounts - Remounting of recently used shares on program start - Miscellaneous infos about the mounted SMB and CIFS shares - Network search - WINS server support - Preview of shares - Selectable look-up and search methods - Default login - Ability to execute mount and umount SUID root (using super or sudo) - Special handling of homes shares - Ability to bookmark favorite shares - And many more :) WWW: http://smb4k.berlios.de
30 lines
623 B
Awk
30 lines
623 B
Awk
#!/usr/bin/awk -f
|
|
# AWK part for generating Windows/Samba boxes list in .nsmbrc format
|
|
# Incoming - findsmb output, outgoing - NetBIOS names list
|
|
# $Id: smb2awk,v 1.2 2003/10/30 09:41:10 shelton Exp $
|
|
|
|
{
|
|
while ((getline nline) > 0)
|
|
{
|
|
if (substr(nline,1,1) == "-")
|
|
{
|
|
sig = 1
|
|
continue
|
|
}
|
|
|
|
if (sig == 0)
|
|
continue
|
|
else
|
|
{
|
|
split(nline,narray," ")
|
|
|
|
if (narray[2] == "unknown")
|
|
next
|
|
else
|
|
if (index(narray[2],".") != 0)
|
|
next
|
|
else
|
|
print narray[2]
|
|
}
|
|
}
|
|
}
|