Redirect /dev/console output to /dev/null, file or dummy terminal
Alexander Kriegisch
Alexander at Kriegisch.name
Fri Nov 16 11:18:04 UTC 2007
Hi!
Sometimes I work on my embedded device via serial console, but have no
other terminal open, so my console window is cluttered by /dev/console
output. This is okay if I actually want to debug, but sometimes I am
working productively on the box, wishing to redirect all external output
coming into /dev/console to somewhere else. If I open another terminal,
e.g. via telnet or ssh, I can use setconsole to redirect debug output to
that other terminal.
Question: Is there a way to get rid of debug output without opening
another terminal session? Using /dev/null as a setconsole target is not
possible:
$ setconsole /dev/null
setconsole: TIOCCONS: Inappropriate ioctl for device
The same applies to redirection into a file. Is there some kind of dummy
terminal I can use or create in order to achieve what I want?
--
Alexander Kriegisch
More information about the busybox
mailing list