14 Apr
2001
14 Apr
'01
13:00
Hi After changing ISPs I no longer get a static IP so I want to be able to somehow get the IP of ppp0 and use it in my custom firewall script. So far I have the following: MYIPADDRESS=`ifconfig | grep P-t-P | awk '{ print $3 }'` although this puts 'addr:xxx.xxx.xxx.xxx' in the variable MYIPADDRESS. How can the front 'addr:' be chopped off, or is there an easier way to get just the IP of the current session? Many thanks Andrew