multi-terminal bash (split intput / output)
Page 1 of 1

Author:  caibbor [ Fri May 07, 2010 2:44 pm ]
Post subject:  multi-terminal bash (split intput / output)

this is basically what I'm doing:

mkfifo in
mkfifo out
bash 0<in 1>out 2>out &
cat out

and from another terminal I can `cat > in`
that way I get a bash process with separate terminals for input and output.
the problem is, Ican't figure out why bash won't output it's prompt ([email protected] #)...

is there some other kind of file descriptor that bash outputs that kind of thing to, or does it just know when it's outputing to non-standard output and just skip it?

Author:  caibbor [ Sun May 09, 2010 12:50 pm ]
Post subject:  Re: multi-terminal bash (split intput / output)

edited top post for clarity

edit: found an answer

frostschutz wrote:
well when you run a bash script the script does not output prompts either, does it? so yes, bash knows...

if you want to force it, try bash -i and/or bash -l - see the manpage for interactive/login shells

Page 1 of 1 All times are UTC - 6 hours
© 2000, 2002, 2005, 2007 phpBB Group •