Hi, I would very much appreciate your help in this. I need to write a condition around the whole of my scripts. In that I need to check if a directory is empty before the script kicks off and does it business. The script is run in cron.
e.g. if the directory a is empty I want the rest of the script gets excuted. Otherwise an email to be sent to the user.
if directory empty
then
process the whole script
else
send an email.
Hope you can help. Many thanks in advance
e.g. if the directory a is empty I want the rest of the script gets excuted. Otherwise an email to be sent to the user.
if directory empty
then
process the whole script
else
send an email.
Hope you can help. Many thanks in advance