[Pythonmac-SIG] Users and groups module
Jack Jansen
Jack.Jansen at cwi.nl
Fri Jan 9 16:02:59 EST 2004
On 8-jan-04, at 19:22, Rick.Termath wrote:
> I am working on a script to gather resource use etc on our ASIP OS9
> Servers, and I have been unable to find a module that can talk to the
> users and groups. I am trying to gather information on student logins
> to the servers, in users and groups a "last login" date is displayed
> and I am trying to find a way to pull that information (if possible),
> any help, tips, pointers or suggestions would be appreciated.
If you can obtain the information with an AppleScript program you
should be able to run gensuitemodule on the relevant application (or
control panel, or whatever) and get a Python interface to it. If you
cannot get the information in AppleScript you'd have to create a C
module to interface to the relevant APIs, assuming there are such APIs.
The former should be fairly simple, the latter is complicated.
As always, your best bet for questions like this is to ask on the
pythonmac-SIG. Even though you may be the first person to attempt this
specific interface there'll usually be people who have helpful
insights, etc.
--
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma
Goldman
More information about the Pythonmac-SIG
mailing list