Michael C. Toren on Tue, 26 Jun 2001 23:11:10 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] access to system and perl stat()


> I just wrote a little perl script to keep an eye on some rarely-used
> mail drops. It uses stat() to decide whether the spool file has been
> modified in the last X minutes. 
> 
> Works fine on my own Linux box but not on a couple other UNIX machines I
> have accounts on. These machines don't let me execute the stat command
> from the shell, and the stat call fails in my script. 

Can you tell us what $! is set to after stat() fails?

Are you able to run ls -l against these files?

-mct