COUNT=`cat ${ALERT_LOG} | wc -l`
#COUNT=100
echo ${COUNT}
tail +${COUNT} ${ORACLE_ALERT}
The error is...
tail: cannot open input
It works fine if I use COUNT=100.
I can only presume that the tail command is interpretted as...
tail +`cat ${ALERT_LOG} | wc -l` ${ALERT_LOG}
although I have...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.