From: Alex Brandt <alunduil@gentoo.org>
To: gentoo-user@lists.gentoo.org
Cc: Meino.Cramer@gmx.de
Subject: Re: [gentoo-user] Difficulties to acchieve a certain time period with fcron
Date: Sat, 30 May 2015 15:31:35 -0500 [thread overview]
Message-ID: <1531358.dMBcfkgOgV@elijah> (raw)
In-Reply-To: <20150529161252.GB4316@solfire>
On Friday, May 29, 2015 18:12:52 Meino.Cramer@gmx.de wrote:
> What I want is, that fcron executes a script every 14 days. It does
> not matter, when to execute the script, since I cannot guarantee that
> my PC is running exactly at that time.
I've got a similar cron I run for backups (daily rather than bi-weekly) but it
looks like this:
%nightly,bootrun,random * 2-4 CMD
What this tells fcron is to run nightly (meaning only one run is allowed in an
evening, run at boot if it hasn't run and I just booted in the period, and
randomly select a time between 2:00 and 4:00. Works great for my needs and if
one is missed it gets picked up at boot as it should.
Hope that helps but if not there's more in the man page:
http://fcron.free.fr/doc/en/fcrontab.5.html
Regards,
--
Alex Brandt
Software Developer for Rackspace and Developer for Gentoo
http://blog.alunduil.com
prev parent reply other threads:[~2015-05-30 20:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-29 16:12 [gentoo-user] Difficulties to acchieve a certain time period with fcron Meino.Cramer
2015-05-29 18:30 ` Dimitrios Semitsoglou-Tsiapos
2015-05-30 7:57 ` Alan McKinnon
2015-05-30 16:42 ` [gentoo-user] " James
2015-05-30 20:15 ` Neil Bothwick
2015-05-30 20:31 ` Alex Brandt [this message]
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=1531358.dMBcfkgOgV@elijah \
--to=alunduil@gentoo.org \
--cc=Meino.Cramer@gmx.de \
--cc=gentoo-user@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox