[Samba] listing shares programmatically

Emmanuel Florac eflorac at intellique.com
Wed Dec 9 15:41:42 UTC 2020


it's probably somewhat off-topic, but I need to automate mounting
shares which are dynamically created on a samba server. I can use
"smbclient -L <server>" to grab that list, however its output isn't
easily parseable.

I had a look in the samba tools and found nothing of relevance.

Is there a recommanded way to get the list of shares from a remote
server programmatically?

Emmanuel Florac     |   Direction technique
                    |   Intellique
                    |	<eflorac at intellique.com>
                    |   +33 1 78 94 84 02
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: Signature digitale OpenPGP
URL: <http://lists.samba.org/pipermail/samba/attachments/20201209/d302996c/attachment.sig>

More information about the samba mailing list