Hi,
I have a perl script to read the log file and create a report from it. I have the script file and log file in a different directories. Now i have pipe the log file data to the perl script to create the report (HMTL file). I am using the below command this isn't working
code
tail -f /$LOG_DIR/app.log | perl $SCRIPT_DIR/run_report.pl
/code
But if i use cat command it works,
code
cat /$LOG_DIR/app.log | perl $SCRIPT_DIR/run_report.pl
/code
Please advice to use tail or any other commands to create the report dynamically instead of cat.
Edit/Delete Message