From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f5c94f7e7c4419d2,start X-Google-Attributes: gidfee84,public From: "Kaare Schou" Subject: vdump & automated tape change Date: 1999/11/16 Message-ID: #1/1 X-Deja-AN: 549251016 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@uni2.dk X-Trace: news.get2net.dk 942757210 129.142.129.226 (Tue, 16 Nov 1999 14:00:10 MET DST) Organization: UNI2 Internet Kunde X-MSMail-Priority: Normal NNTP-Posting-Date: Tue, 16 Nov 1999 14:00:10 MET DST Newsgroups: comp.unix.osf.osf1 Hi. Alpha8400 / DUNIX 4.0D / DLT MiniLibrary (TL891) / Media Robot Utility I make backup using vdump. Doing so I get a prompt on stderr when tape is full vdump: Change Tapes: Mount tape# 0002 vdump: Press RETURN when tape is mounted... Of course, I like to script that action (is'nt that the whole idea of tape robots ?). I've made something like: TAPE=/dev/nrmt0h vdump ... 2>&1 |& while read -p ;do if [[ $(print $REPLY | cut -f 2 -d :) = ' Change Tapes' ]] ;then [ robot blah blah to change the tape (works fine)] print -p '\r' fi Doing so, however, vdump returns: vdump: out of space and unable to prompt input for new tape; [25] Not a typewriter Of course, scitpts using named pipes, bidirectional 2<> and other desparate things have been tried, so far with no success. Can anyone out there tell me how to make this work. Any clues will be appreciated. --Kaare ------------------ Kaare Schou | Royal Danish Administration of Navigation and Hydrography Mailto:KSc@fomfrv.dk | http://www.fomfrv.dk