* Can vdump help itself to the next tape in a DAT stacker
@ 1996-02-16 5:00 rmj
1996-02-21 5:00 ` Tony Jones
0 siblings, 1 reply; 4+ messages in thread
From: rmj @ 1996-02-16 5:00 UTC (permalink / raw)
We run vdump from a shell script to back up some 9Gb disks to a DEC TLZ7L DAT
stacker system, but even with DDS2 and data compression on the drive
switched on nearly full disks fill more than one tape.
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
I'd be grateful if anyone can tell me how to get vdump to continue on the
second tape all by itself. I tried redirecting stdin and queueing up an
return for it, but I get the above message.
TIA
Roderick Johnstone
Institute of Astronomy
University of Cambridge
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can vdump help itself to the next tape in a DAT stacker
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
1996-02-23 5:00 ` rmj
0 siblings, 1 reply; 4+ messages in thread
From: Tony Jones @ 1996-02-21 5:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can vdump help itself to the next tape in a DAT stacker
1996-02-21 5:00 ` Tony Jones
@ 1996-02-23 5:00 ` rmj
1996-02-23 5:00 ` Steffen Kluge
0 siblings, 1 reply; 4+ messages in thread
From: rmj @ 1996-02-23 5:00 UTC (permalink / raw)
In article <4gdq1c$gg6@odin.sunquest.com>, tony@sunquest.com (Tony Jones) writes:
|>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
|>
|>I'd go grab a copy of the Libes Expect text.
|>
|>tony
|>
Tony
Very many thanks for the pointer to expect. This does exactly what I
wanted and it was easy to get into at the level I needed (thanks to Don Libes
for that).
Roderick
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can vdump help itself to the next tape in a DAT stacker
1996-02-23 5:00 ` rmj
@ 1996-02-23 5:00 ` Steffen Kluge
0 siblings, 0 replies; 4+ messages in thread
From: Steffen Kluge @ 1996-02-23 5:00 UTC (permalink / raw)
In article <4gkf6e$dj8@lyra.csx.cam.ac.uk>, <rmj@ast.cam.ac.uk> wrote:
>
>In article <4gdq1c$gg6@odin.sunquest.com>, tony@sunquest.com (Tony Jones) writes:
>|>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
>|>
>|>I'd go grab a copy of the Libes Expect text.
>|>
>|>tony
>|>
>
>Tony
>
> Very many thanks for the pointer to expect. This does exactly what I
>wanted and it was easy to get into at the level I needed (thanks to Don Libes
>for that).
>
>Roderick
>
If it's only a "return pressing ghost" what you need you might also try
/usr/bin/yes | your_backup_script
Cheers
Steffen
--
Steffen Kluge
ave GmbH Aachen
e-mail: stk@ave.ac.agit.de
--
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-02-23 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1996-02-23 5:00 ` rmj
1996-02-23 5:00 ` Steffen Kluge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox