how can i get ipaddress of my machine by shell scripts
Hi,
# ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'+ 127.0.01 how can i send the output ip address to mail mail -s 127.0.0.1 |
Quote:
There are THOUSANDS of bash scripting tutorials you can easily find on Google. What have you written so far? |
Assuming you have an SMTP server running, you can do this:
Code:
echo "This is the body of the email" | mail -s "This is the subject" rai@email.com |
All times are GMT -5. The time now is 04:16 PM. |