Saturday 18 June 2011

If file exists then send email with attachment ?

if [[ -f $your_file ]]; then uuencode $your_file $your_file|mailx -s "$your_file exists..." your_email_address
fi

No comments:

Post a Comment