mardi 11 octobre 2016

linux bash script run if file isnt newer than x

I need to create a bash script to run a command if a file in a directory isn't newer than 30 mins.

I was thinking something like:

find /folder/to/watch/* -mmin -30 -exec  {fixscript.sh} \;

Aucun commentaire:

Enregistrer un commentaire