bobbybobbertson
Programmer
I have a perl script that is called like the following:
tail -f access.log | myperlscript.cgi
Every morning at some random time (usually around 4am) my server does something to the access.log. I think it copies the log to another name, zips it up, and then creates a brand new access.log.
After whatever happens, my script keeps running, but the new info that is being piped to access.log does not make it to my script. Is there anyway to force a recovery of the info being piped to the new file without restarting the script or tail function?
Is there a better way to call the tail function, to handle this problem?
tail -f access.log | myperlscript.cgi
Every morning at some random time (usually around 4am) my server does something to the access.log. I think it copies the log to another name, zips it up, and then creates a brand new access.log.
After whatever happens, my script keeps running, but the new info that is being piped to access.log does not make it to my script. Is there anyway to force a recovery of the info being piped to the new file without restarting the script or tail function?
Is there a better way to call the tail function, to handle this problem?