Hi,
I’m running a simple home server on a Mac Mini Server (OS X 10.7). I want to write a script that can check for current connections (in order to sleep the machine when no one’s connected). The three primary services I want to check are:
- File sharing (i…e AppleFileServer)
- VNC screen sharing
- VPN connections
I’ve googled and looked into Apple’s docs, but without finding anything useful. Does anyone know if it’s possible to check for these types of connections somehow? It doesn’t matter if it’s AppleScript, Bash, Objective-C/Cocoa, or whatever, as long as it’s possible to do…
Best regards,
Henrik