How to send email from a unix / linux script

I like a lot of detail about my script runs when I am doing unit testing, I will usually append status and event messages to a summarized log file that I call my email file, this is the syntax I use to send an email with this summary when my script is done running:

mail -s "My script completed" [email protected] < $my_email_summary

So the general syntax for the command is:

mail -s "subject" [email protected] < file_name


Sqoop: Create-hive-table tool

Apache Sqoop Logo


–table <source_table> : The name of the table on the originating database

— hive-table <target table> :  The name of the table to be created written to into






–mysql-delimiters : ( , ) for fields, ( \n ) for lines, enclosed-by ( ‘ ), escaped-by ( \ )



* The tool will fail if the target table exists