Re: Feature Request: eject option for amflush
2003-05-16 09:04:09
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jon LaBadie wrote:
> On Wed, May 14, 2003 at 11:29:09AM +0200, Nicki Messerschmidt wrote:
>> I think an eject option for amflush would be a very useful thing,
>> because one cant do somethin like
>> amdump; mt -f /dev/nst0 offline
>> because amflush does some asking an then exits. An I don't like to
>> wait for the tape to be rewinded and then ejected. How do you think
>> about it?
> I suppose you mean by the last line that you don't like to
> physically sit there waiting.
> As a workaround I think a little shell script would work.
> scan the ps command output for the amflush program
> extract the process id number (PID)
> (solaris has a 'pgrep amflush' command for these steps)
> use wait PID to let the script pause til amflush completes
> maybe put in a sleep for some extra time if needed
> issue your mt offline command (maybe an mt rewind first?)
> You could run this in the background after the amflush returns
> control to your terminal. And if you do it as "nohup <your script>
> &" you can log off.
Thanks for you information. I will try to write somethin like that, but
I would still be more happy, if there was a switch to amflush... *g*
Cheers
Nicki
- --
Linksystem Muenchen GmbH info AT link-m DOT de
Schloerstrasse 10 http://www.link-m.de
80634 Muenchen Tel. 089 / 890 518-0
We make the Net work. Fax 089 / 890 518-77
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>
Comment: Keys at: https://www.link-m.de/pgp
iQA/AwUBPsTR8es1nPm17iBDEQL7OQCfcJ3tCSE7QIwsc25bzQv+36ik+5AAnjpm
E32kVZlcsURcF0rjmJowFX0x
=1hY/
-----END PGP SIGNATURE-----
|
|
|