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
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Cache or copy a website?

Full website contents can be copied with wget command with below options :wget \--recursive...

How to Configure Centos 6 firewall (iptables)?

Introduction CentOS 6 uses iptables as system firewall.We configure iptables in our default...

How to resize volumes with LVM?

Quick tips: To see the details of logical volume group use: vgdisplay To see the details of...

Install Fedena on CentOS

Installing Fedena on Centos is a bit tricky since most of the stack used to run fedena is not...

KVM create and restore a full backup (Disk Image)

Making a backupBoot the system rescue cd ISO and follow the directions until you get to a...

Powered by WHMCompleteSolution