Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: potterveld@axmep1.phy.anl.gov ()
Subject: interactive vdump in a subshell
Date: 1997/12/17	[thread overview]
Message-ID: <67985m$74i@milo.mcs.anl.gov> (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)



             reply	other threads:[~1997-12-17  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-17  5:00 potterveld [this message]
1997-12-18  5:00 ` interactive vdump in a subshell Bob Vickers
read-only archive

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