[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Daten holen von daheim



Hallo Martin,

* Martin Samesch <martin.samesch@vogelspinnenseite.de> [31-03-02 21:27]:
> Udo Mueller wrote:
> > 
> > Warum sollte es nicht. Wenn du die IP-Adresse rausbekommst (durch
> > Mail oder Upload auf ne www-Adresse), kannst du doch auch einen
>   ^^^^
> In welcher Variable versteckt sich eigentlich meine dynamische
> IP-Adresse?
> 
> Bisher mache ich das so...
> 
> ------
> # cat /etc/ppp/ip-up.d/send_ip
> #!/bin/sh
> 
> MUA=/usr/bin/mail
> TO_ADDRESS=foo@bar.de
> SUBJECT="from tutnix...."
> 
> test -x $MUA || exit 0
> 
> ifconfig ppp0 | grep addr | $MUA $TO_ADDRESS -s "$SUBJECT"

Kann ich dir nicht genau sagen, aber /etc/ppp/ip-up wird mit der IP
aufgerufen:

# This script is called with the following arguments:
#    Arg  Name                          Example
#    $1   Interface name                ppp0
#    $2   The tty                       ttyS1
#    $3   The link speed                38400
#    $4   Local IP number               12.34.56.78
#    $5   Peer  IP number               12.34.56.99
#    $6   Optional `ipparam'' value	foo

Wird diese Datei bei ISDN eigentlich auch ausgewertet?


Gruss Udo

-- 
ComputerService Müller |  You want my PGP-Key?  |   Tel: 0441-36167578
Kaspersweg 11a         | mail  -s "get pgp-key" | Fax: 01212-511073287 
26131 Oldenburg        | AD0EEC22 is not guilty |  Mobil: 0162-4365411
     Registrierter Linux-User #225706 auf Debian GNU/Linux 2.4.17

Attachment: pgpGCxZAghEBu.pgp
Description: PGP signature


Reply to: