[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Text output with ip-up...
On Wed, 28 Oct 1998, DarkChyld [Ronald J. Hall] wrote:
> Hi, I'm trying to use ip-up (and eventually ip-down) with my Mint setup.
> Basically, I'm trying to output my logon stats (such as ip address) to a
> text file /var/log/ip-log. Here is what I've done (but isn't working)
>
Yes not exactly correct:
1) the equivalence have been set at the start of the file, so you can
use "real names" no more $2 etc :)
2) the syntax you use is not accurate.
>#
># My IP-UP File
>#
># Put here --> /etc/ppp/ip-up (and ip-down)
>#
>PATH=/usr/local/bin:/bin:/usr/ucb:/etc:/usr/etc:/etc/ppp:/var/log
>#
>PROG=$0
>IFACE=$1
>DEVICE=$2
>SPEED=$3
>LOCALIP=$4
>REMOTEIP=$5
>#
>$4 > /var/log/ip-log
cat $LOCALIP >/var/log/ip-log
>HOSTNAME=$4
hostname $LOCALIP
#You can also add something like:
/bin/echo "IP: $LOCALIP at $SPEED bds.\r" >/dev/ttyv1
>#
>
> Thanks in advance for any help! ;-)
>
>
> __________________________________________________________________
> / / / / /\
> / --T-- / Sysop of The DarkForce! BBS / /\ / /
> / -A T A R I- / Phone 1-606-886-9014 Today! / Dark><Chyld / /
> / --G-- / The Fuji -still- Lives...!! / \/ / /
> /_______________/_______________/_________________/_______________/ /
> \_________________________________________________________________\/
>
>
________________________________________________________________________________
Email:Kellis@primenet.com
Web http://www.primenet.com/~kellis/
________________________________________________________________________________