Can anybody suggest me how to get a list of currently connected
users over AFP or connected users to server in general? Is there a
file I can read or a command which returns yes / no if particular
user is connected?
I need this for a PHP application working with user home
directories and I want to implement "user connected" check in order
to avoid issues with homes being mounted/used on client machines.
There is no simple way to do this that I have found. There is a
command line approach that I have used a few times.
will give you a ton of information about connected users. More than
you probably want. If you do a grep with the output you can get a
line that just lists the names of connected users:
You can execute this command from within php or do it as a cron job
and save the results into a text file that php could open and read.
Hope this helps
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden