<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Folks;<DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>I'm trying to check if a process is running before continuing my script (BTW I'm a relative new-be at shell scripting); here's what I've tried:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>#!/bin/bash</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>FileMaker="";</DIV><DIV>let loop=0;</DIV><DIV>echo "Start"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>while [$Filemaker == "" && $(($loop < 10))]; do {line 8 referenced below}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Filemaker= top -l1 | grep "FileMaker"</DIV><DIV>echo "Filemaker = " $Filemaker</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>let loop=$loop+1</DIV><DIV>echo $loop</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>done</DIV><DIV>echo "stopping"</DIV><DIV>end</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>What I WANT to do is loop thru until either Filemaker is NOT empty or loop has reached a <FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">predetermined</SPAN></FONT> value. </DIV><DIV>I keep getting variations on :</DIV><DIV>./FileMakerTry.txt: line 8: [: missing `]'</DIV><DIV>./FileMakerTry.txt: line 18: end: command not found</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN> I can't seem to get the syntax of the while correct; would someone care to lend a hand??</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Russell</DIV></BODY></HTML>