hallo Sarang!
on Friday, September 01, 2000, 9:30:26 AM, you wrote:
SL> Whats the command to get IP address of u're machine? The only way I know of
SL> is thru kppp when using modem... I am talking of dynamic IP addresses
SL> here.. I want something which i can put in a script!
ifconfig - or, if you'd like to have the pure ip for scripting try:
export LOCALIP=`ifconfig ppp0 | grep inet | cut -d : -f 2 | cut -d \ -f 1`
or if you have ISDN
export LOCALIP=`ifconfig ippp0 | grep inet | cut -d : -f 2 | cut -d \ -f 1`
the use
'ping $LOCALIP' or whatever..
PAT
--
vcard/LDAP/PGP: http://dresden-online.com/~perler/identity.html
PGP fingerprint: DAC6 2FDA 1ED7 AD55 BD1F 5142 3D5F 72BF