Új hozzászólás Aktív témák

  • ecaddict

    senior tag

    válasz Laca 012 #13664 üzenetére

    Nekem OK:

    wget http://checkip.dyndns.org -O /tmp/public_ip_addr
    --2010-05-11 13:51:53-- http://checkip.dyndns.org/
    Resolving checkip.dyndns.org (checkip.dyndns.org)... 208.78.70.70
    Connecting to checkip.dyndns.org (checkip.dyndns.org)|208.78.70.70|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 106 [text/html]
    Saving to: `/tmp/public_ip_addr'

    100%[=======================================================================>] 106 --.-K/s in 0s

    2010-05-11 13:51:53 (460 KB/s) - `/tmp/public_ip_addr' saved [106/106]

    Próbáld meg, hogy ezt a két sort:

    wget http://checkip.dyndns.org -O /tmp/public_ip_addr
    CIP=`sed -n 's/.*:[ ]*\([0-9.]*\).*/\1/p' /tmp/public_ip_addr`

    Ezzel helyettesíted:

    CIP=`nvram get wan0_ipaddr`

    (Remélem itt mindig a megfelelő IP van...)

    ### RT-N16, WL-500 Oleg optware script ami majdnem mindent feltesz ### ===========> http://wl500g.info/showthread.php?t=23684 <===========

Új hozzászólás Aktív témák