#!/bin/sh
# name : ppp_ip
#
# 29/09/1998 V 1.0
#
# [EMAIL PROTECTED] http://chris.hislora.com.au
#
# this finds out the ppp link's ip number
#
PPP=`/sbin/ifconfig |grep P-t-P |cut -f2 -d :|cut -f1 -d ' '`
echo " my ppp ip is " ${PPP}
> > Hi, all!
> > Is there a way to display one's IP address once you have connected to
> > your ISP who delivers those addresses dynamically? Yes, I know it's kind
> > of a risk nowadays to be online and have the IP address right on the
> > screen, so it would have to be only available to root, or something...
> > Any help would be appreciated!
> >
> I use a perl script to look through the output of tail -20
> /var/log/messages and call it from my login script.
>
> something like (off the top of my head):
>
> $blabla = `/usr/bin/tail -20 /var/log/messages';
> @whatever = split(/\n/, $blabla);
> foreach $whatever(@$whatever){
> if($whatever =~ /remote/i){
> print ($whatever);
> }
> }
>
> etc...you get the idea...
>
>
>
>
>
>
>
>
>
>
> > --
> >
> > See you,
> >
> > Christoph Hammann
> >
> > #########################################################
> > # (-; too freaking busy feigning computer literacy ;-) #
> > #######################################################
> >
> >
> >
> >
>
> Tom (I haven't had to reboot my computer in over 6 days) Myro
> Webmaster, cyber-nurse.com, camerology.com
> Free CGI's: http://www.cyber-nurse.com/workshop
>
Support your local Search and Rescue unit -- get lost.