linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Emulate(?) the crontab
@ 2007-01-09 19:33 Mário Gamito
       [not found] ` <430c159a0701091142t510790fdkd9c7049ff162f6d3@mail.gmail.com>
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Mário Gamito @ 2007-01-09 19:33 UTC (permalink / raw)
  To: linux-admin

Hi,

I have this blog agregator in http://www.planetgeek.org

It is hosted, i. e., i'm paying for the hosting.

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

It represents no stress at all for the server.

Meanwhile, i've asked the support to insert the line in the crontab.

Now, they want me to pay 29 euros a month for that line in the crontab.
It's outrageous. It's twice than the hosting cost itself.

I wonder if there could be written a script (bash, perl, python), that 
*without crontab* could run the command I need.

Any help would be appreciated.

Warm Regards,
Mário Gamito
-
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

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Emulate(?) the crontab
@ 2007-01-10 11:05 Adrian C.
  0 siblings, 0 replies; 10+ messages in thread
From: Adrian C. @ 2007-01-10 11:05 UTC (permalink / raw)
  To: linux-admin, Adam T. Bowen

Hello,

I guess you could run something like this in the background..

#!/bin/bash
until false
do
  planet.py geek/fancy/config.ini
  sleep 900
done
exit 0

--Adrian

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Emulate(?) the crontab
@ 2007-01-10 11:16 Jean M. Bouchara
  2007-01-10 12:09 ` Adrian C.
  0 siblings, 1 reply; 10+ messages in thread
From: Jean M. Bouchara @ 2007-01-10 11:16 UTC (permalink / raw)
  To: linux-admin


Put the command in /etc/inittab:


ap:3:respawn:/usr/local/bin/my_script.sh
or
ap:3:respawn:/bin/su - someuser -c /usr/local/bin/my_script.sh



> Hello,

>
> I guess you could run something like this in the background..
>
> #!/bin/bash
> until false
> do
>   planet.py geek/fancy/config.ini
>   sleep 900
> done
> exit 0
>
> --Adrian
> -
> 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
>


-- 
Jean Michel Bouchara
Completo Tecnologia Ltda. - http://www.completo.com.br/
Fone / Fax: (0xx11) 3081-3644
--
Visite o site http://www.escrevinhadora.com.br/



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-01-10 12:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).