|Keep It Simple, Stupid|
How to start automation to open the last three logfiles to get build informationby perladdict (Chaplain)
|on Jul 10, 2007 at 17:38 UTC||Need Help??|
perladdict has asked for the
wisdom of the Perl Monks concerning the following question:
I am working on a task to automate the build system logfiles
the fallowing are the directory structure that i have to navigate to get the log files.
like above path there are total 4 directories in the path /remote/scm/builds/$arg/FailedFormal
Each of the end directory represents Build release number, logfile for that release is in that directory.
First i am trying for Formal builds,it contains more then 10 release amnog them i have to get only the last three relese log files to get the status information from
logfiles.Below is the code i am trying but i unable to change the directory path to the release directory(18.104.22.168)
Here conffile.txt is the input for the script the format of this file is as below
First field from this file is an argument to the script
the directory structure is as below
bash> ls /remote/scm/builds
22.214.171.124.28 126.96.36.199.29 188.8.131.52.30
the output i am getting after running the above code is as below
bash>perl prog.pl v_dialer
Can any one help me out to navigate up to the log file of the relese directory...
The main objective of this task is to get the last three relese log files for a specific product to find the staus information.
This problem seems to easy for expert monks but for me i am not getting any ideas how to start.
Keeps pouring your ideas....