Hi, On Thu, Mar 22 2001 at 09:15 -0300, Adilson Guilherme Vasconcelos Ribeiro wrote:
Today, Stefan Troeger smoke something and in the trip wrote...
Try `grep remote /var/log/messages | tail -1'.
maybe use /etc/ppp/ip-up to print its argument is less resource-intensive than searching through /var/log/messages :)
obviously, only if you connect via ppp :)
but maybe ifconfig "you_net_interface" | grep | sed do the trick
Yep, something like this should do the trick (for ppp): ifconfig |grep -A1 "^ppp" |grep "inet addr" |cut -d ':' -f 2 |cut -d ' ' -f 1 Ciao, Stefan -- Stefan Troeger o _ _ _ stefan@troeger.st __o __o /\_ _ \\o (_)\__/o (_) _`\<, _`\<, _>(_) (_)/<_ \_| \ _|/' \/ (_)/(_) (_)/(_) (_) (_) (_) (_)' _\o_