Must be a stat limitation then. I've never heard of that but I've never looked either. Does anyone know of such a limitation?
What is the exact code you're using? -----Original Message----- From: Adnan Olia [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 4:30 PM To: Dan Muey Subject: Re: Large file in stat function Thanks for you response....I have another file which is smaller in size have the same properties as the large file work perfectly fine. The small file permissions, user and group -rw-------- user01 root smallfile.0 The large file permissions, user and group -rw-------- user01 root largefile.0 They are both in the same directory The cgi/pl file that runs the stat function is -rwxrwxr-x user02 users stat.cgi Thanks Adnan ----- Original Message ----- From: "Dan Muey" <[EMAIL PROTECTED]> To: "Adnan Olia" <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 4:01 PM Subject: RE: Large file in stat function > Do -e and -s and -r and -R file test on the file your stat function is trying to get the stats for. > > EG > if(-e $file) { print "Yes it exists"; } > if(-s $file) { print "Yes it has non zero size"; } > if(-r $file) { print "Yes it readable by effective ids"; } if(-R > $file) { print "Yes it readable by real ids"; } > > I'd almost bet it's permissions unless stat can't handle big files > which I don't think is the case. > What is the owner and group of the file and what is the owner and > group of your script/webserver? > > -----Original Message----- > From: Adnan Olia [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 17, 2002 3:45 PM > To: [EMAIL PROTECTED] > Subject: Large file in stat function > > > Hi, > > I am trying to get the size of the file using the stat function in > Perl 5.6.0. The actual size of the file is greater than 5 GB on Mandrake Linux 8.2 (kernel 2.4) using ext2 filesystem. When I run the stat command, the value of the size is 0, this is also true for all values of the stat function. > > Any help would be greatly appreciated. > > Thanks > Adnan Olia > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]