Subj : Re: /dev/tty: all output, too? To : comp.os.linux,comp.os.linux.misc From : noone Date : Wed Aug 25 2004 03:36 am doublea987@aol.com (Aarlo Stone Fish) tried to express: > I am trying to write a program that reads all text output (and then does > something with it). It seems that /dev/std{out,in,err} and /dev/tty only > release data input by the user to the terminal. Is there any way for me to > capture all things like this: > char c; > c = 'h'; > write(1, &c, sizeof(c)); > I fork() and have the parent process continue with its regular writing and the > child process read from something like "/dev/tty". > > Thanks! > Aarlo if it is a text mode program then you can us the script command to save the complete session to a file (usually called typescript) .