0
how to verify if file isn’t update more than 55 min?
For example, the file IOstatDisk2.log not update since 18:00 And now the current time is 19:00
solaris1a:/var/tmp ROOT # ls -ltr IOstatDisk2.log
-rw-r--r-- 1 root other 6 Aug 2 18:00 IOstatDisk2.log
So in this case I will append the line
echo “new cycle - file isnt update more 55 min” >> IOstatDisk2.log
But if the last time stamp was less than 55 min then I will not append the line
echo “new cycle - file isnt update more 55 min” >> IOstatDisk2.log
- I work with solaris 8/9/10