APM: checking stale nfs mounts with PERL

Larry Hunter lhunter at lhunter.com
Tue Oct 29 20:14:44 CST 2002


This works in another language but should work in Perl as well:
Generate a sequence of partial paths, adding one directory each time, as in
('/mnt1/', '/mnt1/dir1/', '/mnt1/dir1/dir2/, ...)
and for each partial path in the sequence, test whether it is a readable 
directory.


At 07:08 AM 10/29/02 -0800, Martie Knauss wrote:
>I'm modifying a script that copies files to a mounted
>file system.  For some reason, the file system mount
>point goes stale and prevents the script from
>successfully copying the file out. I've added some
>error checking in the code to make sure the file
>system is there and write-able but I'd like to just
>re-mount the file system if it's gone stale and go
>ahead and copy the file out.  Any suggestions?
>
>__________________________________________________
>Do you Yahoo!?
>HotJobs - Search new jobs daily now
>http://hotjobs.yahoo.com/
>_______________________________________________
>Austin mailing list
>Austin at mail.pm.org
>http://mail.pm.org/mailman/listinfo/austin

------------------------------------------------------------------------
Larry Hunter           lhunter at lhunter.com           http://lhunter.com/




More information about the Austin mailing list