Afficher un message
Vieux 11/09/2007, 21h12   #1
littlehelphere@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Script to compare dates and notify

I am trying to put together a script to compare the dates of a file
and send out an email notification if the date on the file is beyond
30 calendar days. However, I am having a bit of trouble. The file
format is <filename>_%m%d%y. So for example
foobar1_090207
foorbar2_090307
foorbar3_091507
I parse the file so I am just left with the date extension from
there I want to be notified of any file over the 30 day mark.

I tried using expr and setting up a variable for the 30 days but its
not working. Any would be appreciated. Thanks.

  Réponse avec citation
 
Page generated in 0,05464 seconds with 9 queries