You are not logged in.

#1 2007-08-09 18:47:33

giddygiddyBA
Member
From: Montreal
Registered: 2004-12-30
Posts: 66

redirecting STDIN from pts/2 to pts/3

lets say i am in using pts/2 and would like to redirect some user input into another terminal, say pts/3, as STDIN, ie pts/3 should execute the command redirected into it

I need to redirect into an open terminal, so forking the command is not an option...

my guess is:

echo "ls\n" >&0 /dev/pts/3

but this is much to simple to work, can anyone correct me?

Thanks.

Offline

Board footer

Powered by FluxBB