Re: How to tell if someone is connected via vnc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the good answer.

On Thu, 2008-01-31 at 15:05 +0100, Olivier Robert wrote:
> Hi,
> 
> I would check for established VNC connections this way:
> 
> netstat -tape | grep ESTABLISHED | grep Xvnc
> 
> As for warning connected users. If you see there is an established vnc
> session on port 5902, you could simply do:
> 
> export DISPLAY=:2.0; xmessage -center -timeout 60 -file shutdown.txt
> > /dev/null 2>&1

How can I determine what the user responds, is there errorlevels or
anything like that? Hundred years ago I was making a lot of advanced
BAT-files in msdos, but have not done much of those things in Linux yet.
I could or maybe should find out reading man-pages, but have already
asked. :)

What is the reason for doing ' > /dev/null 2>&1'

> You could create a list of established connections, translate it to
> active displays (5902 -> 2.0 | 5903 -> 3.0 ...) and send out a
> message.
> 
> Hope it helps
> Olivier
> 
It helps a lot, Thanks

Henning Larsen



-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux