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

learn more… | top users | synonyms

1
vote
1answer
20 views

This anacron cron job is sending emails to me - how can I redirect the output to null? [duplicate]

$ cat update-notifier-common #!/bin/sh set -e [ -x /usr/lib/update-notifier/package-data-downloader ] || exit 0 # Try to rerun any package data downloads that failed at package install time. ...
0
votes
0answers
19 views

ancron only execute if logged in

I have the following anacron entry 7 20 sync.weekly bash /home/dan/Scripts/sync_script.sh I know the second value indicates the time to wait when the system is starting. That is not enough for ...
1
vote
0answers
27 views

Preferred way to remove duplicate source list [duplicate]

My system (Anacron job, whatever that is) tells me the following: /etc/cron.daily/apt-show-versions: Duplicate sources.list entry http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages ...
0
votes
0answers
38 views

How to mute Anacron's “flashplugin installed” message

I have a cluster of Ubuntu PCs which have mailx configured so they can inform me about system events. As a consequence, anacron will often tell me: /etc/cron.daily/update-notifier-common: ...
1
vote
1answer
398 views

Who runs scripts inside /etc/cron.hourly if anacron is enabled?

I've read that if anacron is enabled cron doesn't run the scripts inside cron.weekly/hourly/daily/hourly, as not to run them twice. So anacron takes responsability on that folders. However anacron ...
1
vote
1answer
23 views

How to get exit status of anacron jobs to catch errors?

It is easy to find failed cron jobs by setting log_level but how to do it with anacron?
2
votes
1answer
37 views

Why 'nobody' always starts a new `find` program that always consume my memory?

$ ps -elf | grep ... 0 D nobody 27320 27319 2 90 10 - 353471 sleep_ 07:54 ? 00:02:19 /usr/bin/find / -ignore_readdir_race ( -fstype NFS -o -fstype nfs -o -fstype nfs4 -o -fstype afs -o ...
0
votes
1answer
68 views

Tell me where is mistake in anacron task?

I have tried to make this task for abacron: dm@dm-system:~$ cat /etc/anacrontab # /etc/anacrontab: configuration file for anacron # See anacron(8) and anacrontab(5) for details. SHELL=/bin/sh ...
0
votes
2answers
96 views

Duplicity does not run via anacron in 14.04

Since the implementation of the lockfile option I cannot run duplicity via anacron (https://bugs.launchpad.net/duplicity/+bug/1320641). Is there any way to circumvent this?
1
vote
0answers
87 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
53 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
297 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
47 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
43 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
318 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
2answers
4k 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
429 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 <[email protected]> To: [email protected] Subject: Anacron job 'cron.daily' on name Content-Type: text/plain; ...
1
vote
1answer
298 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
511 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
2answers
486 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
106 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
340 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, ...
10
votes
2answers
1k 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
275 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
162 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
124 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
390 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 ...