once again thanks you for ur reply .. i got his script from one of the site.. but it is not working for me .. can u plz go through it
#!/bin/sh
FILE2=`echo "/fwlog/ifconfig.txt"`
touch /fwlog/ifconfig.txt
ifconfig eth0 | grep inet | awk -F: '{print $2}' | sed 's/Bcast//' > /fwlog/ifconfig.txt
mv -f /fwlog/ifconfig.txt $FILE2
cat $FILE2 | mail -s"IP address, ifconfig"
xxxxx@xxxxxxxx.com
Rajesh