Send any Linux Command output via E-mail

Create a script file with below syntax :

command > file.tmp
mailx -s "Subject" mailaddress <file.tmp
rm file.tmp
Give script executable permission.

Run Script
Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution