the job scheduler in Linux and other Unix-like operating systems. It enables users to schedule tasks to run non-interactively at specified intervals or predefined times, including upon reboot.
Questions tagged [cron]
256 questions
21
votes
2 answers
Where do Cron error message go?
I have a python script running by cron. For what ever reason, it is not running. I am wondering if there is anywhere that error messages are sent? Script runs fine by itself. If I run a simple script with crontab, that just writes to a file that…
Richard
- 471
- 2
- 5
- 9
8
votes
4 answers
Default shell for cron issue
I have some commands, they are working under bash, but not as cronjob. To see, what cause the problem, i'm saving the output in a file, here my example:
51 * * * * source ~/.rvm/scripts/rvm >> stack.log 2>&1
The content of the log file…
cupakob
- 1,027
- 3
- 13
- 17
6
votes
3 answers
Execute a script at sunrise/sunset
Good afternoon,
I'm trying to edit by soft, as a text file, the file that contains the crontab data.
This is because I need to execute a series of functions daily, they are related to the sunrise and sunset, which vary from day to day.
The idea is…
quito127
- 69
- 1
- 3
5
votes
1 answer
crontab entry with parameters?
My goal was to make my Pi create its own WiFi on start so that I can connect to it wirelessly.
I have succeeded by creating a crontab entry (using sudo crontab -e):
@reboot /path/to/create_ap.sh &
where create_ap.sh is a script launching…
YakovL
- 159
- 6
4
votes
1 answer
systemctl daemon-reload issue
Since a last update, I get the follow message every day via mail:
/etc/cron.daily/logrotate:
Warning: Unit file of apache2.service changed on disk, 'systemctl daemon-reload' recommended.
I tried to do systemctl daemon-reload of course (!), but…
zwolle-rdstk
- 41
- 1
- 2
3
votes
4 answers
Addition to cron is not executed
I am trying to implement a watchdog script which I basically got from here.
Script works fine, starts up process if not running, does nothing if running. Now implementation into crontab gives me headaches!
Opened crontab in leafpad... (what are…
user5875
- 33
- 1
- 3
3
votes
2 answers
How to disable emails from Crontab?
I've got my Model B Pi setup running Raspbian OS. I have added a few jobs to Crontab and they're working very well.
My problem is that I am getting an email each time a job runs. I don't need the emails right now, so is there a way to tell Cron /…
Peter
- 133
- 1
- 6
2
votes
1 answer
What is the environment for cron?
When issues arise using cron to schedule events, a frequently-heard explanation is that cron runs with a different set of environment variables than a "normal" user (e.g. pi). That's all well and good, but what is the environment for the cron user?…
Seamus
- 21,900
- 3
- 33
- 70
2
votes
1 answer
Cronjob deleted but cron still sends email
I have in /etc/crontab a job defined like this:
0,10,20,30,40,50 * * * * root /usr/lib/cgi-bin/awstats.pl -config=example.com -update
I deleted this job but cron sends me still emails every ten minutes.
How can I stop these emails?
My OS is Raspbian…
wolf
- 21
- 2
2
votes
2 answers
Cron for Raspberry Pi
I'm running a program on one of my PIs that has a tendency to error out. I'm still trying to figure out the error but would like a cron entry (or maybe a python script, or most likely both) that will check on an hourly basis to see if the particular…
Ken
- 21
- 3
1
vote
1 answer
Cronjob does nothing?
Does anyone know about crontabs here?
I've programmed a fine dust station with values acquisition, LCD display and so on. The particulate matter station is to be exhibited at the university, but the prerequisite for this is that the respective…
Simon Deible
- 11
- 1
1
vote
1 answer
Automatically shutting down the Pi after it's been idle for a certain period of time
I'm using my Raspberry Pi as a music server : I've installed MPD running under Archlinux ARM.
I'd like to set a cronjob that would check wether MPD has been active for a given period of time and if it's beeni inactive, safely shutdown the system by…
Thomas
- 11
- 2
1
vote
1 answer
Run transmission through cron
I am trying to run transmission torrent client using cron.
I tried adding the below line to /etc/crontab
08 23 * * * pi transmission-gtk
Nothing happens.
tail /var/log/syslog says
Apr 28 23:04:01 raspberrypi /USR/SBIN/CRON[3383]: (pi) CMD…
ATOzTOA
- 163
- 2
- 7
1
vote
1 answer
How to use nano editor for super user (sudo)
I wonder how to edit crontab with nano editor for super user via sudo. I used the following command but it didn't work. crontab was open but it was not a nano editor.
export EDITOR=nano
sudo crontab -e
Adamtan
- 113
- 3
1
vote
1 answer
cron.daily midnight download
I run a headless Pi in a weather station using cellular data. Every night after midnight it does an 8MB download - I don't know what it is, but that's what vnstat tells me. Being as how the system runs on cellular I'd like to kill that.
Had a look…
Ian Boag
- 143
- 5