[X-Unix] Bash scripting Question
Brian Medley
bpm-list-osx-unix at 4321.tv
Tue Aug 22 20:12:06 PDT 2006
On Tue, Aug 22, 2006 at 11:11:06AM -0500, Russell McGaha wrote:
Perhaps:
#!/bin/bash
until command; do sleep 1; done
> Folks;
> I've got a situation where I running a script and need to wait till
> the output of a command is null:
>
> ex.
> NotNull = true
> While NotNull
> do
> fmsadmin status Clients #[returns a list of connected clients; I'd
> like to got thru
> this loop until
> either the output
> of the command is
> null or
> About 2-5 minutes
> have gone by]#
> done
>
> Can anyone give ANY pointers or examples on how to do this?
>
> Russell
>
> PS. I'm on the digests so PLEASE cc me directly
--
~`^`'~=-._.-=~'`^`'~=-._.-=~'^'~=-., \|/ (___) \|/ _,.-=~'`^`
@~./'O o`\.~@
"Knowledge is Power" /__( \___/ )__\ *PPPFFBT!*
-- Francis Bacon `\__`U_/'
_.-=~'``'~=-._.-=~'``'~=-._.-=~'`^`'~= <____|' ^^`'~=-.,__,.-=
~'^`'~=-._.-=~'`^`'~=-._.-=~'^'~=-.,__,.-==--^'~=-.,__,.-=~'`^`
More information about the X-Unix
mailing list