Quote:
Originally Posted by mcopadis
try this:
service dhcp3-server status | mailx -s "system status" user@domain.com
|
So if i want to include the result of my command:
service dhcp3-server status
Result:
Status of DHCPServer: dhcp3 is running
How do i capture the "result" to include in my mail being sent out?