Noel Sequeira spewed into the ether:
Ifconfig gives the entire details. There was a thread sometime back to mail the ip address received from the modem, but i could not locate it from the archives. If someone is using it please post it on the list. Philip had written a script to this effect.
Try this one liner: /sbin/ifconfig|grep P-t-P|tr -s ' '|cut -f 4 -d ' '|tr -d adr:
This is mostly from memory, so the paramter to cut may be wrong.
To explain: /sbin/ifconfig -- get all network details grep P-t-P -- get the line containing the external ppp ip address tr -s ' ' -- convert all multiple space fields to a single space. cut -f 4 -d ' ' -- cut the fourth field using a delimiter of a space. (There is a space at the beginning, which you have to consider) tr -d adr: delete the addr: part of this field.
Devdas Bhagat
------------------------------------------------------------ Nettaxi would like to ask for your help in donations to the RED CROSS today! http://www.nyredcross.org/donate/