From: Liam Bedford (lbedford at domain wbtsystems.com)
Date: Tue 11 Jul 2000 - 10:26:45 IST
On Tue, Jul 11, 2000 at 10:08:44AM +0100, Dale Dunlea came forth with:
> cat /dev/ttyS1 and the card's output is
> redirected to the console. But then gdb not
> longer receives it. So Basically, I need some way
> for the cat command to pipe it's information onto
> gdb as well as to the console. So where do I pipe
> it to? A fictional serial port? Anyone got any
use the tee command.
echo moo | tee /tmp/tee.out | gdb
will write moo to /tmp/tee.out, and send it on to gdb. You can then
I guess you could also use a fifo or something, and have gdb use it for input,
and tee use it for output, but I may be talking complete crap there..
-- Liam Bedford | Four thousand holes in Blackburn, Lancashire System Administrator | And though the holes were rather small WBT Systems, Block 2, | They had to count them all Harcourt Centre, Harcourt St. | Now they know how many holes it takes to fill 01-4170100 | The Albert Hall
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:50 GMT