<HTML>
<HEAD>
<TITLE>Re: [X-Unix] Login Hooks running items on login a little bit too quickly</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:14.0px'>Don't quite fully understand it but I think I can still use it.<BR>
<BR>
Why do you have the [] around the F in Finder? When I use that line, it doesn't work. ps -ax | grep Finder (without the [] ) works fine.<BR>
<BR>
- opa<BR>
<BR>
<BR>
On 1/8/05 11:27 AM, "Juan Manuel Palacios" <jmpalaciosp@eml.cc> wrote:<BR>
<BR>
<FONT COLOR="#0000FF">> <BR>
> On Jan 7, 2005, at 7:16 PM, Our PAl Al wrote:<BR>
> <BR>
</FONT><FONT COLOR="#008000">>> I don't want to hard code a delay in my shell script since delay times <BR>
>> until<BR>
>> the Finder is up can vary by machine. Anybody know how a shell script <BR>
>> could<BR>
>> determine if the Finder is is fully up before proceeding to execute?<BR>
>> <BR>
>> - opa<BR>
</FONT><FONT COLOR="#0000FF">> <BR>
> <BR>
> $[juan@PowerBook: Pendulum](28/0,0)-> ps -ax | grep [F]inder<BR>
> 412 ?? S 0:16.91 <BR>
> /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder <BR>
> -psn_0_786433<BR>
> $[juan@PowerBook: Pendulum](29/0,0)-> echo $?<BR>
> 0<BR>
> $[juan@PowerBook: Pendulum](30/0,0)-> ps -ax | grep [F]ooooo<BR>
> $[juan@PowerBook: Pendulum](31/0,0)-> echo $?<BR>
> 1<BR>
> <BR>
> So I'd use:<BR>
> <BR>
> ps -ax | grep [F]inder 2>&1 >/dev/null<BR>
> if [ $(echo $?) == 0 ] ; then "proceed with your script ; fi<BR>
> <BR>
> Hope that helps! Regards,...<BR>
> <BR>
> <BR>
> Juan<BR>
</FONT></SPAN></FONT>
</BODY>
</HTML>