mardi 18 octobre 2016

linux bash find if not execute

I need to create a bash script to run another script command if none of the files in the directory have been created within 30 mins.

I am not sure of the code I need but it needs to find and execute if not matched. -

find /folder/to/watch/* if-not 30 mins -exec fixscript.sh or something?

When the script is ran I want it to check the files in the folder , if a file has not been created within the last 30 mins then to run the fixscript.sh

Thanks in advance

Aucun commentaire:

Enregistrer un commentaire