[Samba] listing shares programmatically

Aaron C. de Bruyn aaron at heyaaron.com
Wed Dec 9 23:33:12 UTC 2020


Does 'net rpc share list' meet your needs?

-A

On Wed, Dec 9, 2020 at 3:27 PM Emmanuel Florac via samba <
samba at lists.samba.org> wrote:

> Hello,
>
> 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?
>
> cheers
> --
> ------------------------------------------------------------------------
> Emmanuel Florac     |   Direction technique
>                     |   Intellique
>                     |   <eflorac at intellique.com>
>                     |   +33 1 78 94 84 02
> ------------------------------------------------------------------------
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


More information about the samba mailing list