Hi,<br><br>I would check for established VNC connections this way:<br><br>netstat -tape | grep ESTABLISHED | grep Xvnc<br><br>As for warning connected users. If you see there is an established vnc session on port 5902, you could simply do:<br>
<br>export DISPLAY=:2.0; xmessage -center -timeout 60 -file shutdown.txt > /dev/null 2>&1<br><br>You could create a list of established connections, translate it to active displays (5902 -> 2.0 | 5903 -> 3.0 ...) and send out a message.<br>
<br>Hope it helps<br>Olivier<br><br><div><span class="gmail_quote">2008/1/31, Henning Larsen <<a href="mailto:hennlar@start.no">hennlar@start.no</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for the answer :)<br><br><br>I have made a file "ww" that is executable containing:<br><br>"netstat -an | grep ESTABLISHED | grep -v <a href="http://127.0.0.1">127.0.0.1</a>".<br><br>Is this sufficient to tell if any are connected / logged in?<br>
Is there any way to tell people logged in via vnc that I am going to<br>reboot the system? something like 'wall'?<br><br><br>Henning Larsen<br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>
To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br></blockquote></div><br>