hello monks
here's my problem......
i have a file ..... run.sh which when run creates a log file. the name of the log file contains its PID number(which of course changes each time i run run.sh.) say for example the PID number is 5434...then the logfile name would be hull-5434_static.log . my purpose is to be able to do the pattern matching...in other words the text processing of this log file. i have written a perl code for the text processing part ...and it works fine.
the problem is that my code works only when i know the logfile's name. i am not able to dynamically get the name of the logfile each time run.sh runs.
so what i want to be able to do is:
1....get the PID number of the log file as soon as run.sh runs.
2....get the logfile name using th PID number.
3....and finally execute my perl code at the prompt
i dont know if this problem involves shell scripting or perl ........please help me guys
vineet