However this log file now chagned and displays susuccessful in the third last row from bottom upwards. Only once successfull is printed in the entire log file.
What would be the easiest way to change the script.
Attaching the excert from the scritp that does do the lookup (keeps running for 20h)
Main idea is to change this bit to look for the whole nbulog.log file rather than into the last line only
LOGINFO="`/usr/bin/cat "${LOGFILE_NBU}" | /usr/bin/nawk \
'BEGIN{
last_line="";
into something like nawk '/successful/' nbulog.log


Sign In
Create Account


Back to top









