0

This question already has an answer here:

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

marked as duplicate by Jeff Schaller, terdon shell-script Feb 12 at 13:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    -mmin is usually a predicate used with find. Where did you get your code from and did it originally contain a find call? – Kusalananda Feb 12 at 11:26
  • @Thomas_ you've apparently created a second account. Log in to and use the first account (above) in order to edit your question. Thanks! – Jeff Schaller Feb 12 at 12:01
  • I'm voting to close this question as off-topic because the OP created a second account to ask their question at: unix.stackexchange.com/q/500159/117549 – Jeff Schaller Feb 12 at 13:25