The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-10-2008
arunkumar_mca arunkumar_mca is offline
Registered User
  
 

Join Date: Oct 2004
Posts: 256
Thumbs up stat fails HP unix

Hi all,

I have scenario here , In my C program i check the stat for a file as
stat(fname, &stat_buf);

If it is succesfull, i will process else i will make my program to fail.

The file which i am checking has no stat information. What might be the reason, file has no stat information even though it has all data loaded

I am using HP unix

(sys05nmx:/pmx/d4>) ll 173_i.001
-rw-rw-rw- 1 pmx00 pmx 4941517719 Oct 6 13:37 173_i.001



(sys05nmx:/pmx/d4>)stat 173_i.001
Can't lstat 100373_ipd.001



Please help, stat is working for all other files , only for this file it is not working what might be the reason.

Thanks in Advance,
Arun