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

Thanks very much for your help and thanks for the share of knowledge on the server entry. The first line in the file that I was opening was SERVER = cluster. Therefore, I was trying to get the cluster part even they goofed and put additional spaces before or after the = sign. Once again, thanks for the help.

Replies are listed 'Best First'.
Re^3: Grabbing Process Status..
by tadman (Prior) on May 09, 2002 at 08:01 UTC
    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.