Advertisement

04.23.2008 at 03:45PM PDT, ID: 23348598
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Help with Perl Script

Tags: perl, perl, solaris
I've the script below that looks at a file and compares the time it was modified to the system time and sees if the time is greater than 15 minutes or not. I've run into the issue of the file name. The filename changes everyday to the current date. Here's the filename test20080423 tomorrow it will automatically change to test20080424.  

In the script below i m specifying the filename in the path. How can i specify it so it just looks at the filename and todays date so it picks the right file. for example here's the line of code...

my $FileNameBase = '/export/home/itest/test080423';

file name is "test080423", how can i modify the code so it looks for "test"+todays date in YYYYMMDD

#!/usr/bin/perl
use strict;
use warnings;
use POSIX 'strftime';

#File name
my $FileNameBase = '/export/home/itest/test080423';

#Get last modified time for file
my $FileLastModTime = (stat($FileNameBase))[9];

#Get difference from system time to file last modified time
my $FileTimeDiff = time() - $FileLastModTime;

#Exit if file is newer than 15 minutes
exit unless $FileTimeDiff > 15*60;


Please advice...
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: inazir
Solution Provided By: ozo
Participating Experts: 2
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
04.23.2008 at 03:51PM PDT, ID: 21426290

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.23.2008 at 07:29PM PDT, ID: 21427358

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.23.2008 at 08:21PM PDT, ID: 21427556

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.24.2008 at 12:27AM PDT, ID: 21428375

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628