Professional Documents
Culture Documents
Script Explanation
Script Explanation
Within this if condition we are checking that if the CSV file is generated then send it in email.
if [ -s "$csv_file" ]; then
this is start of if condition where if it is successful then it will execute this line
echo "CSV file created successfully."
we are using mutt keyword to send email. We can use mail keyword or ssmtp as well
to send an email.