1 What UNIX?
- SunOS 11.4.5
2. What shell? -
- /bin/sh
3. a sample of the log file that you know has the pattern. A few lines are great.
- STATUS [06/10 05:05:01]: Total counts of security records: 8982673.
STATUS [06/10 05:05:02]: main: Active region has been changed from: 1 to: 0
STATUS [06/10 05:06:02]: elapsed time: 60; vait_time: 1800
Cronjob starts at 5, ideally it should have exit at 05:05:02 when it finds the matching string
Snap from the cronjob log
============ Started at Sun Jun 9 05:00:00 EDT 2019 ==========
Put to maintenance
Sleep for 5 mins
String is: STATUS [06/09 05:04:57]: main: Active region has been changed from: 0 to: 1
Flush_cache.sh Completed
Taking the process out of maintenance
Well, I can't see an error / failure. No "intermittend" behaviour. Data is from 10. June, and log (which seems to have worked) from 9. June. They can't possibly match.