Amanda-Users

Re: Feature Request: eject option for amflush

2003-05-16 10:01:57
Subject: Re: Feature Request: eject option for amflush
From: Daniel Lorenzini <lorenzd AT gcm DOT com>
To: amanda-users AT amanda DOT org
Date: Fri, 16 May 2003 09:57:27 -0400
Why don't you just use the -f option to amflush?

Dan
--------
> 
> 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

<Prev in Thread] Current Thread [Next in Thread>