[Discuss] Run a command with retries

Steven Kurylo sk at infinitepigeons.org
Fri Mar 19 12:17:02 PDT 2010


> Yes, I agree.
> I already use scripts to do as you described in your examples.
>
> But, how can I do this generically so that I can apply
> some higher level output filtering to a number of different
> programs without having to rewrite the script each time?
>
>
> Can I make those high level tests inside a generic
> wrapper that provides a PASS/FAIL result?
>
> I guess the short answer is that I need to make
> that tool myself.
>

Sooner or later you'll always get to a tool which isn't doing the
right thing or can't be accessed programmatically (returning blank
html instead of an error code), so you'll always have to write that
test yourself.

You could make your bash script generic enough that you pass it the
command to run and the output which means success


More information about the Discuss mailing list