Currently Browsing: Scripts

Sending mail from bash [Script]

The mail command can be used under Linux or UNIX bash, ksh, csh shell to send an email. To send a message to one or more people, mail can be invoked with arguments which are the names of people to whom the mail will be sent. You are then expected to type in your message, followed by an...

Sending mail from command line [Script]

Mail content text is /tmp/message.txt mail -s 'Server Status Report' george@example.com -c Jon@example.com < /tmp/message.txt Sending mail with attachment # !/bin/bash tar -zcf /tmp/backup.tar.gz /home/david/files echo | mutt -a /tmp/backup.tar.gz -s “daily backup of data” Jon@example.com Sending...

Apply here payday loans