If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Unanswered: while loop

In a text file (PL_SENDEVENT), I have the following line:
CHANGE_STATUS INACTIVE

and another file (PL_JOBS) with the following lines:
TEST
TEST1

------------------------------------------------------------

What I'm trying to do is change the STATUS of TEST and TEST1 to the status that I specify in the file which is INACTIVE (or IN) in this case. I do not want the script to exit until both jobs have been verified that they are in an INACTIVE (IN) status. Not going well so far. As it stands, it exits successfully once it sets TEST to INACTIVE and doesn't even check TEST1. If the jobs are not in an INACTIVE status, I want it to check again until they both are. Any help would be greatly appreciated.