Originally posted by: drewpyke
Yes, on Linux I am running under bash. With AIX I'm running under ksh.
What I'm trying to do is run a process that outputs to a file (e.g. status.log). When it gets to a certain point in that process, it says 'Server is RUNNING'.
So this wait_for function is supposed to take the parameter of 'Server is RUNNING' then keep looping until it finds that string in status.log.
If I run "tail -5 status.log | fgrep -c “Server is RUNNING″" then I get a return on 1. So I believe it is either the while loop not exiting correctly or the $ substitutes not doing what I think they should be.
Cheers, Andy.
#AIX-Forum