spoorthysr has asked for the wisdom of the Perl Monks concerning the following question:

new to perl, apologise my ignorance!! requirement: when the build is complete a file called " reports.html" gets generated which gives information about summary of the build. Till date we have been checking the build logs manually to see if 'Reports' file is generated.The action point would be to write a script which will automatically check for generation of this file every 15mins(approx) while the build is in progress and pop up a msg/intimate when this file gets generated after completion of the build irrespective of status of build.

Replies are listed 'Best First'.
Re: check for generation of file
by Corion (Patriarch) on Feb 03, 2006 at 12:00 UTC

    Now, where is your question?

    I don't like it that you obviously paste in your job requirement here. We usually solve other peoples' problems here, but at least I expect you to show some effort on your side too.

Re: check for generation of file
by john_oshea (Priest) on Feb 03, 2006 at 12:07 UTC
Re: check for generation of file
by oakbox (Chaplain) on Feb 03, 2006 at 18:48 UTC
    Look up 'stat' in the documentation.
    my $filename = "/home/bob/reports.html"; while(1){ if(-e $filename){ print "done!\n"; exit; } }