in reply to How do I use stat
Try <code> and </code> tags =)
Close. stat's time functions give you the times since the epoch so you need to figure out how many seconds it's been. You should be able to get away with this:
This gets rid of the variables I'm guessing you're not using, as well.if ( time - (stat $_)[9] > 1200 ) { print "ERROR MESSAGE" }
Let me know if that works for ya. =)
-Ducky
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How do I use stat
by bgator29 (Initiate) on Sep 27, 2001 at 22:43 UTC | |
by ducky (Scribe) on Sep 28, 2001 at 00:05 UTC |