Register
It is currently Tue Nov 25, 2014 8:52 pm

multi-terminal bash (split intput / output)


All times are UTC - 6 hours


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Fri May 07, 2010 2:44 pm   

Joined: Wed Mar 10, 2010 8:05 pm
Posts: 25
this is basically what I'm doing:

Code:
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 (user@host #)...

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?


Last edited by caibbor on Sun May 09, 2010 12:51 pm, edited 2 times in total.

Top
 Profile  
 PostPosted: Sun May 09, 2010 12:50 pm   

Joined: Wed Mar 10, 2010 8:05 pm
Posts: 25
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


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: TurnitinBot [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP