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]
259 questions
43
votes
2 answers
Open chromium full screen on start up
I would like to set up a couple of Raspberry Pis to open automatically chromium or any other browser available to at start-up, and in full screen mode.
I was wondering if any of you can help me. These will be placed as some fixed stations where I…
Catalin
- 447
- 1
- 4
- 3
23
votes
6 answers
How do I reboot at a specific time?
Is it possible to re-boot my Raspberry Pi at midnight each night? I know in Linux, you'd use crontab, but I can't seem to find /etc/crontab.
Phorce
- 623
- 1
- 8
- 15
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
- 481
- 2
- 5
- 9
14
votes
1 answer
Automatic updating recommended?
Is it recommended to configure something to automatically keep an RPi updated? And if so, which method (cron-apt or something else)?
Cade Roux
- 2,117
- 5
- 23
- 27
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,057
- 3
- 13
- 17
7
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
- 79
- 1
- 3
7
votes
1 answer
What's different about a crontab reboot?
I have a python script to log data from a USB weather station and present it via a flask front end. The USB on the pi (Pi2 model B) is flaky and occasionally hangs after 24-48 hours. The flask app doesn't seem to cope to well when my home broadband…
Steve Foster
- 79
- 1
- 3
6
votes
5 answers
Is there a way to remove old files without relying on internet time service?
I have a Raspberry Pi that is acting as a sensor which I am sending out to various customers. The sensor is recording approximately 1 GB every 2-3 days, so I would like to have a way to remove old data.
The only way I have found involves using…
Cameron Greenwalt
- 71
- 1
- 4
5
votes
3 answers
Is it necessary to release Raspberry Pi Camera before rebooting? If so how do I do it?
I have a python3 script that uses OpenCV and a Raspberry Pi cam. It runs almost 24/7. Using crontab the pi will reboot every night at midnight and the script will begin running again. This is mostly so that if something goes wrong (like if one of…
StarSweeper
- 455
- 3
- 12
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
- 1
- 7
5
votes
2 answers
How to automatically run a Python GPIO script at boot?
I am using Raspbian.
I have created a Python GPIO script which is supposed to run at the time of the boot.
I have tried to use @reboot in sudo crontab -e. Unfortunately, it is not working at all. I used sudo for the crontab and have made the…
Ashwin Pajankar
- 183
- 4
- 9
- 21
5
votes
1 answer
Cronjob is set to run every 5 minutes but runs every minute
I have a problem with my python script. It looks like this:
#!/usr/bin/python
import time
import serial
import datetime
import sys
Y = datetime.datetime.now().strftime('%Y')[3]
filedate =…
BallerNacken
- 333
- 1
- 4
- 13
5
votes
2 answers
How do I start the cron daemon automatically on Raspbmc?
I'm not able to start the cron daemon automatically on Raspbmc. I tried to configure an upstart and an init script but had no luck.
DouglasJose
- 172
- 5
5
votes
2 answers
Cron job doesn't work, but runs successfully manually
I have directories in my home folder that hold reports uploaded via FTP. The daily folders are named like YYYYMMDD. At 00:01, I want to delete the folder from four days ago. At 01:01, I want to change the access to 755 on the previous day's…
user38537
- 203
- 1
- 5
5
votes
1 answer
Print output not shown when run Python script CRON
I am automatically running a simple python program from start up using cron. The pi boots / automatically logs in, displays the command line and runs the python program but the print output (updating count) is not displayed.
The print output works…
DONALD
- 51
- 1
- 1
- 2