Hello wise and knowledgeable Monks. I am VERY new to Perl and am seeking some wisdom. I have created a script to do what I want manually but I'd like to use a cronjob and automate the process. I want to extract all information from a file based off of the previous days date, (a cron job will run the script every Wednesday). So for instance cron job runs Wednesday August 17 and will include all entries from start of day August 9 to end of day August 16 then send that collected information to new file. The format of the data file being parsed is as follows:
20110802-23:42:01,4
20110802-23:45:01,3
20110802-23:48:01,1
20110802-23:51:01,1
20110802-23:54:01,2
20110802-23:57:01,3
20110803-00:00:01,3
When I tried to automate the process my OUTFILE had no information in it.
Thank you for any assistance or suggestions that can be provided. I'm slowly working my way through the 5th edition of the Lama book and Perl by Example and the Perl Cookbook.
Darryl