From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c1778e5680c2a37b,start X-Google-Attributes: gidfee84,public From: potterveld@axmep1.phy.anl.gov () Subject: interactive vdump in a subshell Date: 1997/12/17 Message-ID: <67985m$74i@milo.mcs.anl.gov>#1/1 X-Deja-AN: 299103436 Reply-To: potterveld@axmep1.phy.anl.gov () Distribution: world Organization: Argonne National Laboratory Newsgroups: comp.unix.osf.osf1 I'm running DUnix 4.0C. I want to create an interactive shell (preferably either csh,tcsh, or bash) with stdin (and maybe also stdout) from a pipe so I can feed commands to it. How do I do this? As a toy example, if I try: mkfifo tst1 /bin/csh < tst1 & echo "ls" >> tst1 the shell job does the ls command, but then exits instead of waiting for another command. What I specifically want to do is to run vdump in some way that I can have another program respond to the prompt asking me to type a "return" when a new tape is ready. I'd like to use a tape robot for dumping some huge filesets to tape. The tape robot will automatically load new tapes after each tape is ejected when full, but vdump is uncooperative. If I run it in the background, it just quits (no tty to talk to). If I run it interactively, I can type the reply, and it works, but that's not optimal because I can't constantly watch over the tapes. I'd rather have a little program read the tty output from vdump, monitor the tape status, and tell vdump to proceed when the tape is OK. Trying things like the example above hasn't worked. Is there a way to do this? Thanks for your help... David Potterveld (potterveld@anl.gov)