Re: How do i find dynamic IP assigned?

From: Roberto C. Sanchez (roberto_at_familiasanchez.net)
Date: 06/22/05

  • Next message: Geoff Jacobs: "Re: bmp/ppm/jpeg/pbm to wsq/nist2000 file format changer"
    Date: Tue, 21 Jun 2005 19:16:52 -0400
    To: debian-user@lists.debian.org
    
    
    

    On Tue, Jun 21, 2005 at 07:06:08PM -0400, Marty wrote:
    > Roberto C. Sanchez wrote:
    >
    > >-------- 8< --------
    > >#!/bin/sh
    > >EMAIL="you@example.com"
    > >lynx -dump http://checkip.dyndns.org |sed -n '/Current/s/.*:
    > >\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\)/\1/p' | /usr/bin/Mail -s "IP address as of
    > >`date`" $EMAIL
    > >-------- 8< --------
    > >HTH,
    > >-Roberto
    >
    > FWIW this site requires no parsing:
    >
    > wget http://www.whatismyip.org/ -qO - | html2text | mail [etc etc ....]
    >
    >

    FWIW, sed is a required package and thus guaranteed to be present on any
    Debian system, while html2text is optional.

    $ apt-cache show sed |grep Priority
    Priority: required
    $ apt-cache show html2text |grep Priority
    Priority: optional

    If the job can be done with Priority `required' or `important' tools,
    there is a much better chance of the script being portable.

    -Roberto

    -- 
    Roberto C. Sanchez
    http://familiasanchez.net/~sanchezr
    
    

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    


  • Next message: Geoff Jacobs: "Re: bmp/ppm/jpeg/pbm to wsq/nist2000 file format changer"

    Relevant Pages

    • Re: Nvu finally in sarge
      ... On Wednesday 20 April 2005 06:27 pm, Roberto C. Sanchez wrote: ... malformed poems I'm asked to see. ... experienced point of view, it's crap, but it's their crap, and it just might ...
      (Debian-User)
    • Re: OT: Electoral College [Re: U.S. federal income tax program]
      ... > Roberto C. Sanchez wrote: ... >>election results. ... As much as politicians and campaign managers want to emotionally charge ...
      (Debian-User)
    • Re: Acrobat 7.0 for linux is out
      ... "Roberto C. Sanchez" wrote: ... It doesn't open the window in fullscreen mode. ... > so they fit on a printed page) graphics on the page xpdf wins out. ...
      (Debian-User)
    • Re: OT: Politics [Was:Social Contract]
      ... On May 31, 2006, at 9:39 PM, Roberto C. Sanchez wrote: ... Australian governor-generals are chosen by the prime minister... ... This is equivalent to the Democrat and neo-conservative approach to life ...
      (Debian-User)
    • Re: Many packages missing from testing
      ... > Roberto C. Sanchez wrote: ... >>Please do a quick Google search. ... Fedora) and many proposals about modifying the testing propogation ...
      (Debian-User)