Alex wrote:
It's no need to send one e-mail multiple times, and please set yourJust a little update on that script, to allow for non eth interfaces... #!/bin/bash ip=`ifconfig $1 | grep "inet addr" | awk '{print $2}' | tr -d addr:` echo Your ip on $1 is $ipThis should allow for passing the interface, i.e. ./findip.sh eth0 or if this is on a DHCP assigned address like a PPPoE, ./findh.sh ppp0. I'm going to add it to my post-update script for my ppp0 interface to update some routing tables, and to kludge in some DDNS entries... |