Hi,
I'm new to Unix environment, so I need help with this probably a simple task. I'm trying to send an email, based on the size (or existance) of a file, i.e., if the file is empty (or it dos not exist) on the given location, I don't need to send the email. However, if the file exists and is not empty, I have to send email.
How can I check if the file exists on the specified location and it's not empty.
Thanks for the help.
I'm new to Unix environment, so I need help with this probably a simple task. I'm trying to send an email, based on the size (or existance) of a file, i.e., if the file is empty (or it dos not exist) on the given location, I don't need to send the email. However, if the file exists and is not empty, I have to send email.
How can I check if the file exists on the specified location and it's not empty.
Thanks for the help.