[X-Unix] Bash scripting Question

Lasse jakobsen.lasse at euro.apple.com
Tue Aug 22 09:16:12 PDT 2006


Hi Russell,

this should do it

		while	[ $x -ne 0 ]; do
			fmsadmin status Clients
		done

Cheers
/L

Den 22/08/2006 kl. 17.11 skrev Russell McGaha:

> 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
> _______________________________________________
> X-Unix mailing list
> X-Unix at listserver.themacintoshguy.com
> http://listserver.themacintoshguy.com/mailman/listinfo/x-unix
>
> Listmom is trying to clean out his closets! Vintage Mac and random  
> stuff:
>         http://search.ebay.com/_W0QQsassZmacguy1984



More information about the X-Unix mailing list