![]() The basic functionality of the mail command in unix or linux system is to send an email to the user.Įcho "Mail body" | mail -s "Mail subject" the echo statement is used for specifying the body of the email. r : Specify the from address in send mail options. ![]() b : Send blind copies of the mail to the list of users. This is like cc option in Microsoft outlook. c : Send carbon copies of the mail to the list of users. Delivery details are displayed on the terminal. The options of mail command are listed below: How to know the status of backup, whether it is succeeded or not? In this case, sending an email from the automated script at the end of the backup will be helpful in knowing the status. For example, you have written an automated script for taking weekly backup of oracle database. ![]() Mail command will come in handy especially when writing automated scripts. The Mail command in unix or linux system is used to send emails to the users, to read the received emails, to delete the emails etc.
0 Comments
Leave a Reply. |