mt status option

John H Merritt merritt at iris613.gsfc.nasa.gov
Thu Dec 13 06:50:58 AEST 1990


In article <9012111454.aa09992 at VGR.BRL.MIL> kcables at 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 at iris613.gsfc.nasa.gov
              Applied Research Corporation at NASA/GSFC
              "Yesterday I knew nothing, today I know that."



More information about the Comp.sys.sgi mailing list