0

I'm trying to make a script to sent an alert when screen sharing is on.

The following command is supposed to list every established VNC connection but this doesn't return anything at all for me :

netstat -a | grep vnc | grep ESTABLISHED 

the only option I found to list past connection :

 log show --predicate 'processImagePath CONTAINS "screensharingd" AND
 eventMessage CONTAINS "Authentication"'

Any idea how to get current VNC session ? and even better, any idea how to sent an alert/email in the background each time a new connection is done

PS : just to make sure, Apple Screen-Sharing (from remote management) is using VNC protocol right?

You must log in to answer this question.

Browse other questions tagged .