Anacron can be used to execute commands periodically, with a frequency specified in days.

learn more… | top users | synonyms

1
vote
0answers
12 views

Which tasks in “Scheduled Tasks” (gnome-schedule) use anacron versus cron?

I am trying to run a command once a day, but my machine is not always on. anacron says it's meant for such purposes, but I prefer to use the Gnome Scheduled Tasks GUI program. If I schedule a task to ...
1
vote
1answer
37 views

How to schedule an irregular backup script requiring user confirmation

I have a backup script which requires user interaction. I would like to schedule it to run, say, once a week. The constraints are that (1) the computer boots straight into Gnome and is turned off ...
4
votes
1answer
124 views

anacron not working

I have a clean install of Xubuntu 14.04 32-bit, and anacron doesn't seem to be working. I read that it's better to use a cron job to trim SSDs, and that Ubuntu has a cron job to do that, so I removed ...
0
votes
0answers
27 views

Why cron.weekly started apt-xapian-index at 11AM instead of between 2-4AM?

I have redifined staring hours in /etc/anacrontab and /etc/crontab like following: --- my changes: 17 * * * * root cd / && nice run-parts --report /etc/cron.hourly 25 3 * * * ...
0
votes
0answers
19 views

Anacron and suspend

Does an cron task, that is run with anacron run even when my system is suspended? I know that anacron will run a job regardless of whether my system is on or off, but I thought that the jobs get ...
4
votes
1answer
258 views

Is upstart a solid replacement for anacron yet?

Upstart FAQ says: Will Upstart replace cron, atd or anacron? Yes. A planned feature for Upstart is the ability to generate events at a particular scheduled time, regular scheduled time or ...
1
vote
1answer
2k views

Why my weekly anacron job is not executed?

I'd like to use anacron for a weekly job on Ubuntu 13.04. Here's my /etc/crontab: # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to ...
0
votes
2answers
1k views

Run Cronjob every night between 3-6 o clock but only once

I want to run a cronjob daily at a specific time range but only once in that period. How is that possible? I see a possibility in anacrhon but don't know how to set up such scenario.
0
votes
1answer
344 views

Ubuntu 12.04 how to completely remove anacron

I am using Ubuntu 12.04 for an embedded project. I need cron jobs to execute only at their specified time, because time may be stepped forwards (resulting in a missed job) but those jobs should be ...
4
votes
1answer
2k views

Disable daily anacron mail updates

Every day, I get the following mail delivered by postfix: From: Anacron <root@name.domain> To: root@name.domain Subject: Anacron job 'cron.daily' on name Content-Type: text/plain; ...
1
vote
1answer
223 views

How to set environment variables for anacron?

I'm currently tinkering with anacron 2.3 on a Ubuntu 12.04 (Precise) installation. I have been trying to make use of the START_HOURS_RANGE and RANDOM_DELAY env vars. My /etc/anacrontab looks like ...
0
votes
1answer
379 views

Why anacron does not call the crontab user files?

I want a special command to be lauched everyday, but dont want to put it in the /etc/cron.d/ because its a user specific user! pg@pipoTower: ~$ crontab -l # m h dom mon dow command 0 0 * * * ...
0
votes
1answer
1k views

Ubuntu 13.04 near-fresh install: 'ps aux' gets stuck on anacron

I've just finished an install of Ubuntu 13.04 onto a brand new PC, and noticed that executing 'ps aux' in a terminal causes it to hang half-way through displaying a list of the processes: $ ps aux ...
0
votes
1answer
359 views

How to fix anacron & cups-pdf when you have /var on tempfs

I have a ssd drive in my laptop and I followed various advice that said to put /var/log /var/spool & /var/cache on a tmpfs so that the constant read/writes wouldn't lessen the life of my ssd. ...
1
vote
1answer
100 views

How to prevent automatic apt-get operations from running for a while?

In a production context, we run scripts to configure/customize the OS. It makes intensive use of apt-get (to install, remove, update, upgrade packages). Unfortunately it happens (especially just ...
3
votes
1answer
293 views

Cannot get gsettings set to work at boot using cron, rc.local, or autostart

I am trying to "lock down" the computer by running a script at boot that turns lock on, lock screen after 10 min and require password, etc. I am using Ubuntu 12.04 I have tried editing crontab, ...
8
votes
2answers
981 views

How can I run anacron in user mode?

I would like to set up a scheduled task via anacron but I would like to do so in user mode. How can I achieve this?
3
votes
3answers
232 views

gsettings and anacron

I wrote a script to change my desktop background. I want this script to run on anacron because I often turn my computer off at night. I've tested parts of the script, and I think the problem is with ...
1
vote
0answers
124 views

How to trigger anacron start if USB drive connected

There is a script in /usr/lib/pm-utils/power.d/anacron which restarts anacron if leptops are connected to power. Is it possible to have a similar script restart anacron if (a certain) USB-drive is ...
3
votes
2answers
108 views

How can I run a job yearly with anacron?

I'd like to use anacron to run a job annually. I see only daily, weekly, and monthly configuration for anacron. Is there a way to run a job once per year?
0
votes
1answer
360 views

setting up anacron for version control update

I store some of my configuration files in version control. Recently I tried to setup a daily anacron job so that I won't have to manually update the files. I have never used cron or anacron before but ...
2
votes
1answer
1k views

How to check when was the last time anacron successfully run?

How can I check when was the last time anacron completed all the daily/weekly/monthly jobs? I understand that the timestamps at /var/spool/anacron are the times anacron started, but it can be that the ...