Checking Timestamps on RHEL4
Hi,
I have RHEL4. I want to check the timestamp of the files and then compare with the system time, if it's same then OK otherwise error. Could anybody please give me the command or a script to execute this? Thanks, Aj |
Using epoch time you could
Code:
test `stat -c %Y /etc/mtab` -ne `date +%s` && echo error |
All times are GMT -5. The time now is 05:19 AM. |