Console driver behaviour?

From: Wartan Hachaturow (wart@softhome.net)
Date: Wed Jan 30 2002 - 11:25:36 EST


Hello.

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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jan 31 2002 - 21:01:19 EST