Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help on how to redirect printk from syslog to GNNOME terminal

19 views
Skip to first unread message

Philip Hsu

unread,
Jan 5, 2004, 9:41:35 AM1/5/04
to

I have tried to use the following code to redirect the printk to
GNNOME console, but it failed. Is it because GNNOME terminal is like
xterm and not in char mode or the console really means to be RS232
terminal. Please help.

if (ioctl(STDIN_FILENO, TIOCLINUX, bytes)<0) { /* use stdin */
fprintf(stderr,"%s: ioctl(stdin, TIOCLINUX): %s\n",
argv[0], strerror(errno));
exit(1);
}

ph...@ix.netcom.com

0 new messages