Re: Automatic Emails...
From: ynotssor (ynotssor_at_example.net)
Date: 09/20/05
- Next message: Lenard: "Re: Run during boot."
- Previous message: josh.miller_at_centralillinoiswb.com: "Automatic Emails..."
- In reply to: josh.miller_at_centralillinoiswb.com: "Automatic Emails..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 20 Sep 2005 14:19:06 -0700
<josh.miller@centralillinoiswb.com> wrote in message
news:1127250322.543051.235060@g14g2000cwa.googlegroups.com
> So what I'd like is to have the computer send a blank email daily so I
> can monitor the IP address.
In a crontab or startup script, use:
wget -O- http://cfaj.freeshell.org/ipaddr.cgi 2>/dev/null | \
mail -s "Current IP address" you@some.where
to get it in the body, or in the Subject: header, just use a variable:
ipaddress=$(wget -O- http://cfaj.freeshell.org/ipaddr.cgi 2>/dev/null)
mail -s $ipaddress you@some.where < /dev/null >/dev/null
- Next message: Lenard: "Re: Run during boot."
- Previous message: josh.miller_at_centralillinoiswb.com: "Automatic Emails..."
- In reply to: josh.miller_at_centralillinoiswb.com: "Automatic Emails..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|