Questions tagged [anacron]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
80 views

Scheduling boot using cron (Ubuntu Server 20.04)

I wonder if it is possible to schedule a machine to boot up at a determined time using cron. Imagine I want my server to shut down at night and boot back up in the morning. I've rad many docs and ...
0
votes
1answer
49 views

How to display a message from anacrontab

I'm trying to display a message when the target time is reached from anacrontab and I suppose the best way is to use notification. I've added this line to my user crontab achieve the same thing: * * ...
0
votes
1answer
35 views

How to use anacron with cron to perform missed tasks by cron?

My python script needs to run at 2pm every day. Another python script must run at 9pm every day. To accomplish that I have set up 2 cronjobs to run those scripts at the given times: 0 14 * * * python ...
0
votes
0answers
31 views

Duplicity works with run-parts but not in anacron

I am working to set up backups from my computer to Google Cloud Storage using duplicity. I used gsutil to create a ~/.boto configuration file, and created a simple bash script that includes a call to ...
2
votes
1answer
83 views

How long does at(1) wait for a scheduled task to complete?

Say one scheduled a task with at 11pm on Friday > long-running-command Ctrl-D How long can the long-running command run? Will the at daemon force termination after a certain amount of time?
0
votes
2answers
92 views

Anacron running running my daily task each hour [duplicate]

I wanted to schedule a daily task using anacron. After some reading I added the below line to /etc/anacrontab: @daily 10 price_scrape /home/pawel/Project_Inflation/run.sh >> /home/pawel/...
0
votes
0answers
19 views

dconf in Anacron

If I run the following script as a non-su user from a terminal it works and the dconf-settings.ini is updated with a file size of 17.2kB. However if I run the same script in Anacron the dconf-settings....
0
votes
1answer
59 views

Why does Anacron need the full path to commands in $PATH

I have noticed that scripts which run perfectly from the command line fail to work properly in Anacron. Often the reason is that Anacron requires the full path to the commands. Is there a way to make ...
0
votes
0answers
46 views

dconf-dump works in terminal but not in Anacron

I am running the following script daily via Anacron. #!/bin/bash if ! mount | grep /media/steve/6363-6333 >/dev/null then dpkg --get-selections > /home/steve/package_list dconf dump / ...
1
vote
1answer
285 views

Anacron daily job not being executed

I am running Ubuntu 18.10 on a laptop with no other OS. I recently added the following line to the /etc/anacrontab file: 1 15 sync.daily /home/steve/Scripts/syncStuff.sh The script syncStuff.sh ...
0
votes
1answer
671 views

Anacron wants to use sendmail. Why?

I am using Ubuntu 18.10 and have added a short script to anacrontab. Now I get this log warning from Anacron: Can't find sendmail at /usr/sbin/sendmail, not mailing output I use the default ...
2
votes
1answer
575 views

How to ensure security upgrades run regularly on intermittent internet connection?

Ubuntu seems to have an enduring blind-spot for security upgrades on computers which are not connected permanently to the internet. These days there are surely a ton of them, mostly laptops. In ...
5
votes
1answer
3k views

Run /etc/cron.daily from specific user

Do I properly understand that it is not possible to run /etc/cron.daily/my from arbitrary user, it will be run only from root according to /etc/crontab? Can I drop root privilege to specific user in ...
0
votes
1answer
109 views

Anacron exit status 128

I want to make a git commit every week, therefore i wanted to use anacron. So I added the following line to my /etc/anacrontab 7 1 AGDienste.weekly /bin/sh /home/bjoern/Hockey/...
6
votes
1answer
1k views

Cron/Anacron vs. Systemd

Linux provides three different job schedulers i.e. Cron, Anacron and Systemd-Timer. What are the benefits of Cron/Anacron vs. Systemd-Timer?
1
vote
1answer
909 views

Why aren't my anacron jobs running?

cron is running, but no anacron jobs run. It's not a localized thing: none of them have been running for quite some time. (Clearly, I wasn't paying attention.) I've checked all the usual cron-like ...
2
votes
1answer
1k views

How can I add a cronjob using a script? [duplicate]

I wrote this script, but it doesn't work: #! /bin/bash cront=$(crontab -e) echo 00 23 * * 5 tar -cpzf /var/backup.tar.gz /home/$USER >> $cront How can I add a cronjob using a script?
1
vote
3answers
602 views

How to allow unattended-upgrades to start even running on battery?

By default, unattended-upgrades is trigger by anacron and it only start when running on AC power, and don’t start when running on battery. This beviavor is easy to understand to avoid waste power. ...
0
votes
0answers
57 views

Automating deja-dup with anacron: permissions problem?

I'm trying to get deja-dup automatically running via anacron, instead of via Unity, so that I have more control over job priorities. In /etc/anacrontab, I'm hoping to use this row: 1 2 ...
0
votes
1answer
89 views

Launching multiple scripts without waiting the end of the previous using anacron

On a small server, I would like to launch a selenium webdriver and a python script which will use the selenium webdriver consecutively at boot, without waiting the end of the other (of course). I ...
3
votes
2answers
1k views

How to make Anacron startup reliably?

So, I'm using Anacron to be able to reliably run some scripts daily. However, this doesn't work when Anacron itself doesn't start on boot half the time. How would I get Anacron to start up reliably? &...
1
vote
1answer
387 views

Deciphering Ubuntu's /etc/crontab [duplicate]

The /etc/crontab on my machine is as follows: 17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-...
3
votes
1answer
150 views

How do I find what is trying to use upstart on my system?

I set up email on my server last night so I could get error notification emails and I got a puzzling email: The whole message is: Subject:Cron <root@*redacted*> start -q anacron || : Body: ...
2
votes
1answer
1k views

cron.daily not running with anacron

Sumary I have a similar problem with cron.daily jobs not running, but the solutions there do not apply to me. I have setup a script that should run daily through cron.daily. I placed my script in ...
0
votes
1answer
882 views

Setting daily backups on laptop with cron/anacron on 16.10

I have similar questions to confusion about cron and anacron (setting up backup schedule for rsnapshot), but there weren't answered either. Problem My problem is to have a backup routine on daily ...
1
vote
0answers
132 views

How to manually delay Anacron for a few hours?

I have Ubuntu running on an older laptop. I have noticed that maintenance cron jobs slow things for a few minutes when they execute. This is a problem if, for example, I need the resources for a ...
2
votes
1answer
1k views

cron.daily hanging my system?

It happens about once a week and the system completely freezes. Doesn't react to Ctrl+Alt+F1, Ctrl+Alt+Delete, I need to hard reset it. Despite it happens different time of the day, every time I check ...
0
votes
1answer
191 views

Daily anacron mails with failure

I'm receiving a daily mail from my Ubuntu with the current contents: /etc/cron.daily/update-notifier-common: Fetch:1 http://downloads.sourceforge.net/corefonts/andale32.exe [291 B] Error:1 http://...
2
votes
1answer
12k views

How to setup cron.daily? [duplicate]

I put my shell script inside /etc/cron.daily I was hoping everything that in that folder would be run daily but my script is not being ran.
22
votes
1answer
15k views

Confused about relationship between cron and anacron

I've been googling in vain to turn up a general explanation of how cron and anacron work together. The man pages are a bit too deep of a dive for me at this point. I get confused because I add tasks ...
0
votes
0answers
22 views

How can I check for updates automatically but not on startup? [duplicate]

edit So parts of my question is solved by another question, ie how to do the upgrades silently, thx for that bot! But the main question remains... /edit So, I've turned off checking for updates on ...
5
votes
1answer
21k views

Where Crontab? Ubuntu 16.04

I've been trying to suss out how to add a job using crontab from this video: https://www.youtube.com/watch?v=vrPGRE6FV9g Easy enough and understandable but I can't find the crontab in etc? Acutally ...
1
vote
1answer
1k views

How do I run a Supervisor task from cron.hourly?

I have a task defined in Supervisor that I would like to invoke hourly from /etc/cron.hourly. I can run it manually, but not from run-parts: $ sudo supervisorctl start my-task -- works # . /etc/cron....
2
votes
2answers
372 views

Get a list of all scripts and their paths which are run as cron job

I am looking for some scripts or a terminal command to list all the active scripts (preferably with their paths), which run on a periodic basis by cron, cron.daily and/or anacron. I am not looking for ...
2
votes
2answers
5k views

confusion about cron and anacron (setting up backup schedule for rsnapshot)

I am trying to set up a not too complicated backup schedule with rsnapshot on a laptop running Ubuntu 16.04 LTS. The plan is to retain two daily backups and 24 hourly backups. I think this is the ...
11
votes
1answer
8k views

Manually run an Anacron Job

I have performed a minimal installation of my system. I want to use this system as PLEX media server. I have configured LXDE because it is a light GUI. I am configuring my system to take automatic ...
1
vote
1answer
2k views

Anacron starts but does not run cron.daily

$ grep anacron /var/log/syslog Feb 20 19:05:11 jesus-Custom-PC anacron[1410]: Anacron 2.3 started on 2016-02-20 Feb 20 19:05:11 jesus-Custom-PC anacron[1410]: Normal exit (0 jobs run) Feb 20 19:05:13 ...
1
vote
1answer
30 views

Everyday Ubuntu system reboots at fixed time

I am using Ubuntu system setup by someone else. It used to restart everyday around 8 am. I checked for cron jobs, but I didn't find any. Can anyone help, why I am getting such behavior ?
2
votes
1answer
516 views

anacron cron.weekly only runs when logged in

I have a weekly cron job set up to run every Saturday morning at 00:01 AM. The anacron.weekly entry in the crontab is set to run at Saturdays at 00:01 AM crontab entry is: 1 0 * * 6 root test -x /...
3
votes
1answer
2k 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. /usr/...
2
votes
1answer
8k 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 ...
2
votes
1answer
995 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?
8
votes
1answer
1k 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 -...
2
votes
1answer
934 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 PATH=/...
1
vote
2answers
1k 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?
6
votes
0answers
408 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
168 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
2k 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 ...
4
votes
1answer
733 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 ...
7
votes
3answers
23k views

Why is my weekly anacron job 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 ...