On Thu, Oct 11, 2012 at 08:15:15PM +0300, Toomas Aas wrote:
> On Thu, 11 Oct 2012 Toomas Aas wrote:
> 
> >On Wed, 10 Oct 2012, Charles Curley wrote:
> >
> >>
> >>I believe running amcheck during an amdump run is a harmless error.
> >>
> >
> >It doesn't probably do any harm, but it turns out that in this
> >case the mail report is still sent, containing these warnings:
> >
> >WARNING: skipping tape test because amdump or amflush seem to be running
> >WARNING: if they are not, you must run amcleanup
> 
> Which leads me to next question - what is the best way to detect, in
> a script, that amdump or amflush is running? Off the top of my head
> I can only think of something like 'ps | grep amdump', but that
> doesn't seem very elegant.

Well, if you are going to do that you might as well use the command
intended for it, "pgrep".  Assuming your system has it that is.

Jon
-- 
Jon H. LaBadie                 [email protected]
 11226 South Shore Rd.          (703) 787-0688 (H)
 Reston, VA  20190              (609) 477-8330 (C)

Reply via email to