(though this depends upon your OS and X server impl):
CONTROLVT="$(grep "using VT number" "/var/log/XFree86.$(echo "$DISPLAY" | sed -e "s/^.*::*\([0-9]*\).*$/\1/").log" | sed -e "s/^.*using VT number \([0-9]*\).*$/\1/")"
Will
On Apr 19, 2005, at 8:44 PM, Don Raikes wrote:
Jason,
I did a ps but didn't see anything that looks like the x server process. I
ran startx and checked again and saw startx running on tty1, but that was
it.
Jason White said:
On Tue, 19 Apr 2005, Don Raikes wrote:
Kenny,
How do I determine which virtual console is running the x server?
Try running ps and looking for the X server process. Most (all?) Linux distributions run it on console 7.
_______________________________________________ gnome-accessibility-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list
_______________________________________________ gnome-accessibility-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list
