ifconfig |grep inet > /somewhere/ipcurrent | mail whoever@blah -s SUBJECT
< /somewhere/ipcurrent
That'll give you the IP's of all interfaces .. it's dodgey, but it works.
Jarrod
|--------+----------------------------------->
| | "Carlo" |
| | <[EMAIL PROTECTED]> |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | rum.com.au |
| | |
| | |
| | 22/02/00 15:14 |
| | Please respond to "Carlo"|
| | |
|--------+----------------------------------->
>-----------------------------------------------------------------------------------------------------------|
|
|
| To: "Adam Moore" <[EMAIL PROTECTED]>
|
| cc: <[EMAIL PROTECTED]>
|
| Subject: Re: [SLUG] Soundblaster Live and another question
|
>-----------------------------------------------------------------------------------------------------------|
/bin/echo `/bin/hostname` is online, IP is $4. | /usr/lib/sendmail
[EMAIL PROTECTED] does not work! Sniff Sniff
It just mails me /gunhead is online, ip is .
Any ideas?
Carlo
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text