Hi all,
I can not understand why my stat() function fails all the time when function tries to go recursevly. Someone suggested that it might be poiter problem. Please, look up my code at: www.donnelly.cc.ks.us/readdir_test.c. How can i solve this problem? Any suggestion are welcome!
Thank you... (3 Replies)
Hi! I ran into a problem with a job I'm running. All it is doing is a "touch" on a filename. However, when I ran the job, it error'd out and got the message 'cannot stat'. When I restarted the job (making no changes) it worked just fine. Anyone know what this means? (1 Reply)
JoeyG's note in the following thread got me thinking about using stat more often in file operations. I've only ever used it within perl - didn't even realize there was a commandline version of it.... (3 Replies)
If i do ls -l i get the result rwx-rw-r ...... ............... file.
How can i get the result in octal format.
All other output will be the same as ls -l shows.
The rwx-rw-r would be like 755 etc. (7 Replies)
Hello everyone,
I need some help on a perl script. The script is to open a dir and print out the date of last modification on all files. I'm been trying this code but it doesn't work.
use File::stat;
open (D,"$ARGV") or die "Can't open\n";
while (defined ($file = readdir D))
{
next... (3 Replies)
hi guys
i got confused about stat output
stat manual says
File : Size in Bytes
Blocks : Number of blocks used
IO Block : Size in bytes of every block.
when i use stat command for passwd file it says
~#stat /etc/passwd File: `/etc/passwd' Size: 999 Blocks: 8 IO... (4 Replies)
i know this command does not exist in solaris. however, i read somewhere on this forum that basically everything the stat command provides in other oses can be obtained in solaris using the ls command.
i've searched the forum for a while now and i cant find the thread. does anyone know about... (1 Reply)
Die to what all operations, the "Modify" and "Change" values of stat output changes for a file.
I found, during editing a file, Change and Modify alters. When chmod'ing Change alters, while Modify doesnot alters. Is there more situations where these changes? (1 Reply)
Hi Experts,
I am here with very simple request:
#!bin/bash
a=`stat -c %y log1.csv`
echo $a
and this stat command returning value as
2013-08-11 05:42:10.000000000 -0400:
But I want to see in mm/dd/yyyy format?
any help is highly appreciated thank you
---------- Post... (9 Replies)
Discussion started by: parpaa
9 Replies
LEARN ABOUT BSD
stat
STAT(3F)STAT(3F)NAME
stat, lstat, fstat - get file status
SYNOPSIS
integer function stat (name, statb)
character*(*) name
integer statb(12)
integer function lstat (name, statb)
character*(*) name
integer statb(12)
integer function fstat (lunit, statb)
integer statb(12)DESCRIPTION
These routines return detailed information about a file. Stat and lstat return information about file name; fstat returns information
about the file associated with fortran logical unit lunit. The order and meaning of the information returned in array statb is as
described for the structure stat under stat(2). The ``spare'' values are not included.
The value of either function will be zero if successful; an error code otherwise.
FILES
/usr/lib/libU77.a
SEE ALSO stat(2), access(3F), perror(3F), time(3F)BUGS
Pathnames can be no longer than MAXPATHLEN as defined in <sys/param.h>.
4.2 Berkeley Distribution May 15, 1985 STAT(3F)