Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ames!dftsrv!iris613!merritt From: merritt@iris613.gsfc.nasa.gov (John H Merritt) Newsgroups: comp.sys.sgi Subject: Re: mt status option Message-ID: <4197@dftsrv.gsfc.nasa.gov> Date: 12 Dec 90 19:50:58 GMT References: <9012111454.aa09992@VGR.BRL.MIL> Sender: news@dftsrv.gsfc.nasa.gov Reply-To: merritt@iris613.UUCP (John H Merritt) Organization: Goddard Space Flight Center Climate and Radiation Branch Lines: 17 In article <9012111454.aa09992@VGR.BRL.MIL> kcables@RELAY.NSWC.NAVY.MIL writes: >mt command with the status option, the output always appears at >my terminal, regardless of whether its output is redirected or piped, It is writing to stderr; you must also redirect stderr. > mt -t /dev/mt/tps0d6 status > dum mt -t /dev/mt/tps0d6 status >& dum > mt -t /dev/mt/tps0d6 status | grep Status mt -t /dev/mt/tps0d6 status |& grep Status > xxx=`mt -t /dev/mt/tps0d6 status` set xxx = `mt -t /dev/mt/tps0d6 status |& cat` John H. Merritt --> merritt@iris613.gsfc.nasa.gov Applied Research Corporation at NASA/GSFC "Yesterday I knew nothing, today I know that."