You are not logged in.

#1 2012-04-28 18:46:34

Lockheed
Member
Registered: 2010-03-16
Posts: 1,437

[solved] cron alternative

I have cron up and running with various scripts being executed regularly.

However, this a laptop and it is not always running. I would like to scripts that were scheduled to run while the laptop was off to be executed upon system start (say, 10 minutes after system start). How can I achieve it and do I have to move all the cron scripts to this cron alternative?

Last edited by Lockheed (2012-04-28 19:16:28)


Laptop: ThinkPad W500, C2D P9500, 8GB, Radeon RV635 (HD3650), Arch | Server/fw: Zotac AQ01, A4-5000 Kabini, 4GB, Arch/pfSense VM

Offline

#2 2012-04-28 19:14:44

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [solved] cron alternative

ArchWiki reads:
If you regularly turn off your computer but do not want to miss jobs, there are some solutions available (easiest to hardest):

Asynchronous job processing

Does it help?


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2012-04-28 19:16:11

Lockheed
Member
Registered: 2010-03-16
Posts: 1,437

Re: [solved] cron alternative

I found cronwhip. It looks like exactly what I was looking for.


Laptop: ThinkPad W500, C2D P9500, 8GB, Radeon RV635 (HD3650), Arch | Server/fw: Zotac AQ01, A4-5000 Kabini, 4GB, Arch/pfSense VM

Offline

#4 2012-04-28 19:18:20

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [solved] cron alternative

Cronwhip was mentioned in the WiKi (option 2)...


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#5 2012-04-28 19:23:22

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,950
Website

Re: [solved] cron alternative

Afaik the default cron in Arch already does this and comes with anacron.

Offline

#6 2012-04-28 23:33:21

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [solved] cron alternative

I've found fcron to suit my needs on a single-user PC.  Like anacron, fcron assumes the computer is not always running and, unlike anacron, it can schedule events at intervals shorter than a single day.  Like cronwhip, it can run jobs that should have been run during the computer's downtime.  http://fcron.free.fr/index.php

When I installed it from the community repo, the switch from cronie was painless.  The pseudo-user, 'systab', was created to own the cron jobs in /etc/cron.hourly, cron.daily, etc.  I didn't have to do any reconfiguration for the 'system-owned' cron jobs: very "Ooh, nice!"  http://www.gentoo-wiki.info/Fcron

Last edited by thisoldman (2012-04-28 23:33:56)

Offline

#7 2012-11-29 16:44:23

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 644
Website

Re: [solved] cron alternative

For those wanting to get fcron in pair with systemd, these two exemples might be usefull:
- http://comments.gmane.org/gmane.comp.sy … n.devel/66
- Arch FS#31248 - [fcron] Use foreground mode in systemd service file

Last edited by kozaki (2012-11-29 16:44:50)


Seeded week #28: Arch 25 gig (stock 12, Talking 1, Anywhere 11, Apricity 1)
Desktop @3.30GHz 8 gig RAM, Arch linux-ck
laptop1 Atom 2 gig RAM, Arch linux stock i686 (5+H battery smile) & 2: ARM Tegra K1 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

Board footer

Powered by FluxBB