Re: Fork and Exec a process within the kernel

From: Lee Revell
Date: Tue Aug 10 2004 - 13:42:28 EST


On Tue, 2004-08-10 at 12:21, Paul Jackson wrote:
> > My user mode program is running.
>
> Good.
>
> > Any idea how to control which console it shows up on?
>
> No clue.

OK, ignore the peanut gallery, this is the real answer:

./foo > /dev/tty1

See /etc/syslog.conf on Debian for another example. Anywhere you could
write to a file you can write to /dev/tty$FOO and it will do the right
thing.

UNIX is full of stuff like this. Pretty cool, huh?

Lee



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/