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
bash# perl tp.pl hull-PID_static.log
i dont know if this problem involves shell scripting or perl ........please help me guys vineet

In reply to scripting probs by vineet2004

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.