Checking thew ststus of a file

Padiyath Sreekumaran kumar.padiyath at psi.ch
Thu Dec 13 10:24:37 UTC 2007


Hello,
How can I check the status of a file (open, closed) in a shell script?
Is there an example available? 
Can I use lsof command and how?

Thanks in advance,
Kumar
 ------------------------------------------------------------------
Padiyath Sreekumar       |   Tel: +41.56.310.3643
Paul Scherrer Institut   |   email: kumar.padiyath at psi.ch
AIT                      |   Office: WHGA/U132 
WHGA/U132                |   Fax: +41.56.310.3649
CH-5232 Villigen PSI     | 
Switzerland              |
-----------------------------------------------------------------




More information about the redhat-list mailing list