OK, I no practically nothing about scripting in Bash so I need some help.
I want to place a job in the Cron that emails me if the following criteria are met:
a file(s) of format z_u_* is found in directory X
where X is the directory created the day previously [e.g. today directory would be called 'save-2003-10-16' and yesterdays would be called 'save-2003-10-15']
I would like to return an email only when 1 or more of these files exist and the email should contain a listing of those files. I should therefore recieve an email such as this:
"The following files are unprocessed in Task Manager:
z_u_c_r_001.Wed
z_u_c_r_205.Wed
"
Can anyone help me out with this please?
I want to place a job in the Cron that emails me if the following criteria are met:
a file(s) of format z_u_* is found in directory X
where X is the directory created the day previously [e.g. today directory would be called 'save-2003-10-16' and yesterdays would be called 'save-2003-10-15']
I would like to return an email only when 1 or more of these files exist and the email should contain a listing of those files. I should therefore recieve an email such as this:
"The following files are unprocessed in Task Manager:
z_u_c_r_001.Wed
z_u_c_r_205.Wed
"
Can anyone help me out with this please?