for example how do I know if a file has been updated since midnight last night? thanks.
D*e
2 楼
stat filename
【在 f***y 的大作中提到】 : for example how do I know if a file has : been updated since midnight last night? thanks.
f*y
3 楼
it works on linux.. but looks not working on my unix account have any idea about this?
【在 D**e 的大作中提到】 : stat filename
D*e
4 楼
stat() is a system call. in linux it is put in a c wrapper and made an executable. this is not done in unix. if you just want to check the time stamp on a file, i think this can be done by playing with 'ls' or 'find', etc. of cause you can write a little program that calls stat(). do a 'man stat' on the usage.
【在 f***y 的大作中提到】 : it works on linux.. but looks not working on my unix account : have any idea about this?
c*t
5 楼
If you install perl, try perldoc File::stat.
【在 f***y 的大作中提到】 : for example how do I know if a file has : been updated since midnight last night? thanks.