What does "echo < /dev/rmt/0m" mean?

What does "echo < /dev/rmt/0m" mean?

Post by Davi » Fri, 25 Nov 2005 16:20:55



Does anybody know what "echo < /dev/rmt/0m" does?

Thanks in advance.

 
 
 

What does "echo < /dev/rmt/0m" mean?

Post by Jeroen Bess » Fri, 25 Nov 2005 17:45:11



> Does anybody know what "echo < /dev/rmt/0m" does?

> Thanks in advance.

My 1st guess would be that it echoes the contents of the tape (and
afterwards rewind it).

--
Best regards,
Jeroen Besse
(to contact me: the nospam address actually exists)

 
 
 

What does "echo < /dev/rmt/0m" mean?

Post by John Howell » Fri, 25 Nov 2005 19:34:26




> > Does anybody know what "echo < /dev/rmt/0m" does?

> > Thanks in advance.

> My 1st guess would be that it echoes the contents of the tape (and
> afterwards rewind it).

Nearly, but not quite. Having assigned the tape to stdin echo will
ignore it, as it always ignored stdin, and produce a blank line, after
which the tape will be rewound when stdin to echo is closed.

John Howells

 
 
 

What does "echo < /dev/rmt/0m" mean?

Post by Rainer Beushause » Fri, 25 Nov 2005 19:44:52



> Does anybody know what "echo < /dev/rmt/0m" does?

> Thanks in advance.

it will spit out a blank line

Rainer

 
 
 

What does "echo < /dev/rmt/0m" mean?

Post by Tim Bradsha » Fri, 25 Nov 2005 21:07:46



> it will spit out a blank line

And rewind the tape, which is probably the intended effect.

I can't see why anyone would do this rather than use mt though:
mt -f /dev/rmt/0m rew
for instance (probably that's the default tape device for mt anyway,
and the rew isn't really needed as it happens by side-effect anyway,
but it is *much* clearer what is going on).

--tim

 
 
 

1. how to kill "mt" or make "/dev/rmt/..." device NOT BUSY?

Hi everybody,

I'm using an Exabyte 8mm tape drive through "/dev/rmt/0lbn" unser Solaris 2.4.

If something goes wrong with the tape during execution of "mt ..." command,
this command hangs in a state in which it can't be interrupted or killed.
The device remains busy even if I can manually eject the tape. The only
way to get the access to the tape is to reboot the system.

Is it possible to kill "mt" somehow or make the tape device NOT BUSY some
other way? Are there any timeouts defined for the "mt"/device (if so,
can they be made shorter) ?

any help will be appreciated,

regards, Michal.

****************************************************************************


  Al. Ujazdowskie 4                   Voice:    48-22-294011 ext 23
  00-478 Warszawa, POLAND             FAX:      48-22-294967
****************************************************************************

2. S3 Trio 64V+ problem

3. tape device bulebud01 / 57 <> mt status /dev/rmt/3n /dev/rmt/0n: Device busysy?

4. Setting up 'on'

5. GETSERVBYNAME()????????????????????"""""""""""""

6. An easy way to manage user IDs?

7. syslogd: "/" in "/dev//dev/tty"

8. How does apachectl start apache ?

9. Why "fdisk /dev/hdb1" works but not "fdisk /dev/hdb"!?

10. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

11. why "" in echo "$FOO" ?

12. is file<<"STRING"<<endl.atomic operation.

13. <font color="blue"><B>kmail</B></font> question