Path: utzoo!attcan!uunet!mcsun!hp4nl!eutrc3!eutws1!wsinpdb From: wsinpdb@eutws1.win.tue.nl (Paul de Bra) Newsgroups: comp.unix.i386 Subject: Re: wangtek retensioning problems Message-ID: <1467@eutrc3.urc.tue.nl> Date: 7 Feb 90 09:22:54 GMT References: <292@comcon.UUCP> Sender: news@eutrc3.urc.tue.nl Organization: Eindhoven University of Technology, The Netherlands Lines: 31 In article gemini@netmbx.UUCP writes: >tim@comcon.UUCP (Tim Brown) writes: > >>Ok, I give up! Does anyone know how to write a tape command to retension >>, rewind and erase etc for a wangtek tape drive running under ISC2.0.2? >... >For erasing and retensioning tapes I wrote two simple programs that should >do the trick. I've tested them with the Wangtek 150 MB streamer model. >I've named them `wterase' and `wtretens'. Here they are: >... Amazing how much duplication of effort we see for such a simple problem. The real and simple solution is to use the tapecntl(1) command: tapecntl [ -etrw ] [ -p arg ] where e=erase, t=retension, r=reset device, w=rewind tape and p[n]= position tape to n-th end-of-file mark. This command is in AT&T sVr3.2 on which all others are based. If your vendor did not supply this program you should complain. The program exists and is documented in the manual. Of course it assumes the presence of a Wangtek drive (as that's the one AT&T sells). I have also succesfully used it with an Everex controller instead of the Wangtek controller AT&T sells. Maybe this should go into the list of frequently asked questions? Paul. (debra@research.att.com)