From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3fe16edb991e94d0 X-Google-Attributes: gidfee84,public From: tony@sunquest.com (Tony Jones) Subject: Re: Can vdump help itself to the next tape in a DAT stacker Date: 1996/02/21 Message-ID: <4gdq1c$gg6@odin.sunquest.com>#1/1 X-Deja-AN: 140361767 distribution: world references: <4g1vld$oq8@lyra.csx.cam.ac.uk> organization: Sunquest Information Systems, Inc. newsgroups: comp.unix.osf.osf1 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