From: Jens Knoell <jens@surefoot.com>
To: "Mário Gamito" <gamito@gmail.com>
Cc: linux-admin@vger.kernel.org
Subject: Re: Emulate(?) the crontab
Date: Tue, 09 Jan 2007 13:47:13 -0700 [thread overview]
Message-ID: <45A3FF51.2050809@surefoot.com> (raw)
In-Reply-To: <45A3EDF7.7000105@gmail.com>
Hi Mario
On 01/09/2007 12:33 PM, Mário Gamito wrote:
> Hi,
>
> I have this blog agregator in http://www.planetgeek.org
>
> The agregator software must run a one line command every 15 minutes to
> rebuild the index.html of the site.
>
> The command is
> #planet.py geek/fancy/config.ini
>
> I wonder if there could be written a script (bash, perl, python), that
> *without crontab* could run the command I need.
Yes and no. You could - depending on the hosting solution - write a
script that runs in an endless loop and does a sleep() and set it as a
background process. The big issue there is that a server reboot will
kill that process. There are sneaky ways around that, like for example
checking if the process is running - each time a user hits your page, a
script launches to see if the endless job is running. If not - restart it.
Alternatively if you have shell access you can run a timed process on a
different machine which for example uses SSH to hop on to the host, runs
the process and backs off. If you have a server or 24/7 machine at home
for example that would work just fine.
Either solution would be reasonably feasible.
Jen
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2007-01-09 20:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-09 19:33 Emulate(?) the crontab Mário Gamito
[not found] ` <430c159a0701091142t510790fdkd9c7049ff162f6d3@mail.gmail.com>
2007-01-09 19:47 ` Atishay Kumar
2007-01-09 20:47 ` Jens Knoell [this message]
2007-01-09 21:34 ` Benoît Rouits
2007-01-10 0:27 ` terry white
2007-01-10 9:41 ` Adam T. Bowen
-- strict thread matches above, loose matches on Subject: below --
2007-01-10 11:05 Adrian C.
2007-01-10 11:16 Jean M. Bouchara
2007-01-10 12:09 ` Adrian C.
2007-01-10 12:43 ` Adam T. Bowen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45A3FF51.2050809@surefoot.com \
--to=jens@surefoot.com \
--cc=gamito@gmail.com \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.