|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
File Modification & Access Times
Hi Guys,
Anyone got a neat way of accessing the file modification and last-access times from the (korn) shell? Cheers Steve |
|
#2
|
|||
|
|||
|
don't think so.
in 'c' and¦or 'perl' you can use one of the 'stat()' family functions. |
|
#3
|
|||
|
|||
|
ls -l gives the modification time,
ls -ul gives the last access time. The times are given with accuracy to the minute, better accuracy (seconds of the era) gives the stat function in C, but you must write a C program. regards |
|
#4
|
|||
|
|||
|
Accuracy to the second is all I need to I'm using ls -lc and ls -lu.
Thanks for your help guys. Steve |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > File Modification & Access Times |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|