From: tony@sunquest.com (Tony Jones)
Subject: Re: Can vdump help itself to the next tape in a DAT stacker
Date: 1996/02/21 [thread overview]
Message-ID: <4gdq1c$gg6@odin.sunquest.com> (raw)
In-Reply-To: 4g1vld$oq8@lyra.csx.cam.ac.uk
rmj@ast.cam.ac.uk wrote:
: The stacker automatically loads the next tape ok, and if you run from a
: terminal all you have to do is press return, but when run from the script I
: get:
: vdump: out of space and unable to prompt input for new tape; [25] Not a
: typewriter
Are you running the script from a tty, or from cron ?
I'm assuming from cron given the nature of the error.
- dump always reads from the controlling tty, rather than from stdin.
- vdump seems to read from stdin (which is really broken - try writing a shell
script which has an internal process pipeline, the end of which includes a
function that invokes vdump - you end up having to do 'vdump -0f /dev/rmtXX
< /dev/tty'. I hate to think how 'vdump -0f -' gets handled in terms of input
from the operator :-)'
Either way, if you are running from cron, you have no tty, vdump or dump is
going to barf, if it has to get input from the operator.
The only rational form of redirection you can do in this case involves
constructing your own master/slave pty pair for communication with dump.
Fortunately, expect makes this easy.
I'd go grab a copy of the Libes Expect text.
I'm really interested to know other folks experience with these tape
stacking units. I'm in the progress of writing an unattended backup frontend
using expect (to answer all the usual dump interaction messages) and am curious
what challenges (if any) the stackers present.
tony
next prev parent reply other threads:[~1996-02-21 5:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-02-16 5:00 Can vdump help itself to the next tape in a DAT stacker rmj
1996-02-21 5:00 ` Tony Jones [this message]
1996-02-23 5:00 ` rmj
1996-02-23 5:00 ` Steffen Kluge
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