Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* interactive vdump in a subshell
@ 1997-12-17  5:00 potterveld
  1997-12-18  5:00 ` Bob Vickers
  0 siblings, 1 reply; 2+ messages in thread
From: potterveld @ 1997-12-17  5:00 UTC (permalink / raw)




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)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-12-18  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-12-17  5:00 interactive vdump in a subshell potterveld
1997-12-18  5:00 ` Bob Vickers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox