[Gllug] Getting the current VT

Holger Duerer hduerer at gmx.net
Mon Apr 11 10:03:07 UTC 2005


>>>>> "Benedikt" == Benedikt Heinen <gllug at ml.icemark.net> writes:

    Benedikt> Hmmm...

    Benedikt> Grepping from the XFree log?

    -> (++) using VT number 7

    Benedikt> $ grep 'using VT number' /var/log/XFree86.0.log | sed -e 's/.*VT number //'
    Benedikt> 7
    Benedikt> $

So, how do you know which log to parse?  On my machine there are 4
such files (XFree86.0.log, XFree86.1.log, XFree86.2.log, and
XFree86.8.log).

And what if you are not using the X vt ATM?

        Holger

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list