This question already has an answer here:
- Solaris script - modified date file age 2 answers
I have a bash script on a Solaris server to provide an alert if a file is in a folder location for longer than 5 minutes.
It seems the -mmin command doesn't work in Solaris.
if [ -f $1 -mmin +15 ] then a=0