Re: How do I schedule a task to be done hourly.
- From: Grant <bugsplatter@xxxxxxxxx>
- Date: Wed, 31 May 2006 13:09:18 +1000
On Wed, 31 May 2006 02:34:01 GMT, Mark Healey <die@xxxxxxxxxxx> wrote:
On Tue, 30 May 2006 08:59:40 +0000, Andrew Schulman wrote:
The computer at work has a dynamic IP address. Sometimes I'd like to be
able to access it remotely. I have script that gets the IP address and
sends it to a web server I can access any time and retrieve it. I'd
like to have the script run hourly but cron only seems to go to daily.
That's not a bad solution, but you might consider an alternative: give
your host a hostname at http://www.dyndns.com (a free service), and use an
update client to call in to dyndns.org whenever the IP address changes. I
use ipcheck, but there are lots of update clients-- dyndns.com has a list
of compliant ones.
I've heard of such things but the host is behind a firewall/router. I
found it easer to go to whatismyip.com. The perl script took me about an
hour.
Huh? When ip-up is called (for new connection, IP may change), you
get these:
# environment vars:
# DEVICE
# IFNAME
# IPLOCAL <<== new IP number ;)
# IPREMOTE
# PEERNAME
# SPEED
# ORIG_UID
# PPPLOGNAME
# CONNECT_TIME
# BYTES_SENT
# BYTES_RCVD
# LINKNAME
# DNS1
# DNS2
There's this concept: event triggered programming, much better than
polling ;)
Grant.
--
http://bugsplatter.mine.nu/
.
- References:
- How do I schedule a task to be done hourly.
- From: Mark Healey
- Re: How do I schedule a task to be done hourly.
- From: Andrew Schulman
- Re: How do I schedule a task to be done hourly.
- From: Mark Healey
- How do I schedule a task to be done hourly.
- Prev by Date: Re: Tar problem
- Next by Date: Re: Blog about my Linux
- Previous by thread: Re: How do I schedule a task to be done hourly.
- Next by thread: Re: How do I schedule a task to be done hourly.
- Index(es):
Relevant Pages
|