From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Knoell Subject: Re: Emulate(?) the crontab Date: Tue, 09 Jan 2007 13:47:13 -0700 Message-ID: <45A3FF51.2050809@surefoot.com> References: <45A3EDF7.7000105@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <45A3EDF7.7000105@gmail.com> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: =?ISO-8859-1?Q?M=E1rio_Gamito?= Cc: linux-admin@vger.kernel.org Hi Mario On 01/09/2007 12:33 PM, M=E1rio 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 t= o=20 > 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), tha= t=20 > *without crontab* could run the command I need. Yes and no. You could - depending on the hosting solution - write a=20 script that runs in an endless loop and does a sleep() and set it as a=20 background process. The big issue there is that a server reboot will=20 kill that process. There are sneaky ways around that, like for example=20 checking if the process is running - each time a user hits your page, a= =20 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= =20 different machine which for example uses SSH to hop on to the host, run= s=20 the process and backs off. If you have a server or 24/7 machine at home= =20 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