[lkml]   [2002]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectConsole driver behaviour?

    How can I determine that the program is run via ssh or on
    a headless box?
    The problem is with Linux Console Tools. It tries opening
    /dev/tty, /dev/tty0 and /dev/console respectively upon the
    start, and it fails on ssh'ed or headless boxes. Is there
    any way to catch the situation? I've thought that open should
    return ENODEV in these cases, but it doesn't..

    Regards, Wartan.
    "Computers are not intelligent. They only think they are."
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:15    [W:0.020 / U:1.628 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site