sending the output of a script through mail

ankush grover ankushfedora at gmail.com
Thu Sep 21 05:55:21 UTC 2006


hey friends,

 I have written a script which shows the local and lan address of a system.

#!/bin/sh
test= ifconfig -a | grep addr: | awk '{print $2}'


I want to send the output of this command to a user through mail. How
can I achieven this ?


Thanks & Regards

Ankush Grover




More information about the fedora-list mailing list