Hello Monks,
A quick stupid question.
I need to build a script to read a directory for some logs files. There is one log file (almost) per day and gets written by some server, whenever there is something interesting.
I wrote a script getting input from 'tail -q -n 0 -f /path/file-2013-11-1-31|'.. Problem is since there is date in the file name (yyyy-mm-dd) so use of wild card gets the 'available' files for me to read.
Whenever a new file is available I don't get that, I verified this by doing ps and all I had was, the available file names with tail.
Question is how to get the new files available to be read as and when they appear in the directory?
I don't know Perl IPC, but I can explore that if needed.
Somehow I'm not getting any ideas for this tricky problem.
Ideas are invited!
Thank you in anticipation.
<!
-->