obtaining information like swat
Steve Langasek
vorlon at netexpress.net
Sat Feb 9 15:00:30 GMT 2002
Hello,
On Sat, Feb 09, 2002 at 06:33:25AM -0300, Pupeno wrote:
> Hi, I'm making a program to see samba's status from KDE, I have to do it at
> my job, but it will be opensource obviously...
> I wanted to obtain all the information that swat obtains (Active conection
> list, active share list, open file list) and then make a tree show or
> something, I didn't know how to obtain the active conection list, so I
> started looking at swat code but I've found that it uses samba code to do it,
> to open that .tdb files that I imagine is a particular type of 'binary' file
> for samba.
> So, do you know how can my program obtain that information (not having to
> reimplemente half of samba functions) ? and any information about obtaining
> status of samba to make my program better would be nice.
> Thank you.
If your code will be placed under the GPL, it might be easiest to copy
the necessary code directly from Samba and use it in your program.
Otherwise, you may be able to get what you need by parsing the output of
the 'smbstatus' program.
Regards,
Steve Langasek
postmodern programmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20020209/c99a50a6/attachment.bin
More information about the samba-technical
mailing list