Find if create time of last created file in a directory is older than 5 minutes

A process xyz is running and creating file1, file2, file3, .... filen. how do i know if the process has stopped and createtime of the last file (filen) is older than 5 minutes?

OS is AIX

Hello malaika,

We encorage all forum members to show samples of input, sample of output along with your efforts in your posts in CODE TAGS. Kindly do so and let us know then.

Thanks,
R. Singh

Welcome malaika,

I have a few to questions pose in response first:-

  • Is this homework/assignment? There are specific forums for these.
  • What have you tried so far?
  • What output/errors do you get?
  • What OS and version are you using?
  • Thinking of process xyz, how is that called? Can you tag your tests on to the end of the call?
  • What are your preferred tools? (C, shell, perl, awk, etc.)
  • What logical process have you considered? (to help steer us to follow what you are trying to achieve)

Most importantly, What have you tried so far?

There are probably many ways to achieve most tasks, so giving us an idea of your style and thoughts will help us guide you to an answer most suitable to you so you can adjust it to suit your needs in future.

We're all here to learn and getting the relevant information will help us all.

Kind regards,
Robin

1 Like

Is this actually part of this discussion?: https://www.unix.com/unix-for-beginners-questions-and-answers/281698-rsync-file-gets-created-after-3-minutes-old.html