in reply to Re: Re: Grabbing Process Status..
in thread Grabbing Process Status..

If you have no idea how many spaces are going to appear there, if any, maybe you could use this instead:
if ((/SERVER\s*=\s*cluster/) ...
This will test for zero or more (*) spaces (\s) between those three parts. They can put in 500,000 and it won't affect your program.