hello!
i horribly confused with this redirection business..iv tried hard, but the nail refuses to go into the wall..
i am working with two virtual terminals, /dev/pts/0 and /dev/pts/1
i do this:
echo "hello" >/dev/pts/0
from pts/1, and a "hello" appears on pts/0 as expected..what i want is that whatever appears on pts/0 should go into a file, from where it can be read..
i tried this
exec 1<"/dev/pts/0" 1>&"tempfile"
is this wrong? im a

to shell scripting, so plz accomodate
also, how do file descriptors work? i mean, when a file descriptor is associated with a file, what exactly does it mean?
in the place of whats typed above, is this correct:
4<>"tempfile"
exec 4<"/dev/pts/0"
HELP !!
(actually, what im trying to do is that i hav a small script to send a command to /pts/0 from /pts/2, and then on the basis of the output received. check whether the command was succesful..all through the script.)