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.

learn more… | top users | synonyms

-1
votes
1answer
36 views

Why crontab choose to execute one of the command over other?

So, basically I am using wiringPI library and its sample code for ds1302 chip. It works great by the way - writing and reading to and from ds1302 chip is a breeze. I can initiate PI's date and time ...
0
votes
1answer
28 views

Raspberry Cron don't work [duplicate]

Every 15 minutes, I need to run a PHP script. So I created a execute.sh file containing this line: #!/bin/sh php execute.php >> twitter.log When I run the script manually, it works. Oddly, ...
0
votes
3answers
58 views

Launch python file and run continually at start up and reboot

I cannot seem to get any of the options out there to work. I am trying to auto start a py file when the Raspberry Pi boots up. I need it to stay open and running continuously as it detects knock ...
0
votes
1answer
24 views

Crontab does not execute python script [duplicate]

I have a DSB18B20 temperature sensor and would like to log the readings in a csv file. I have a script templog.py that stores the readings in a file. The file starts with #!/usr/bin/python That works....
6
votes
2answers
144 views

Crontab on Rpi not running Python script

I have a simple problem that I cannot seem to find an answer to even though I have done some research. I am trying to run a python script via crontab (I have never worked with crontab before this haha)...
0
votes
0answers
34 views

@reboot cronjobs run before system clock is updated

I'm creating a cronjob that runs and records its start time (using ps -p $$ -o lstart=), and I noticed the start time it records differs from the start time I see when I run the same command later. ...
0
votes
0answers
13 views

cronjob runs, but doesn't execute properly [duplicate]

I'm trying to use a timelapse controller with my raspberry pi, so I wrote a simple script that uses gphoto2, and I set a cronjob to run every minute. The cronjob runs (I get logging information from ...
0
votes
0answers
13 views

Crontab and Python scripts [duplicate]

I am trying to get a Python script to run hourly using crontab however I cannot seem to get it to work. The Python program runs fine and completes if I manually run it from terminal. $ python /home/...
1
vote
0answers
20 views

Crontab inexplicably restored to default

I have a Raspberry Pi 2 model B running Raspbian GNU/Linux 7 (wheezy). It has been running flawlessly for months and does a bunch of cronjobs. A few run every minute. Some run Once or twice a day. ...
-3
votes
1answer
77 views

FTP file upload [closed]

What cron settings send local file (/home/pi/file.txt) upload via vsftpd (ftp://server/file.txt)? I am using a Rapsberry Pi 3 with raspbian jessie, apache, mysql, php5, vsftpd.
0
votes
3answers
47 views

Cron not call sh script [closed]

Works: crontab -e * * * * * date >> /home/pi/scripts/test.log Doesn't Work: crontab -e * * * * * /home/pi/scripts/test.sh test.sh #!/bin/hash * * * * * date >> /home/pi/...
0
votes
2answers
133 views

Raspberry Pi randomly crashes due to python script

I asked this question in January here on the platform and thought that the reason for my Pi crashing was the raspistill script I used. This turned out to be a false positive. After some hassle and ...
0
votes
2answers
118 views

Apache web-server interface to schedule GPIO tasks

So, here is what I am looking to accomplish. I have a Pi with an Apache webserver running with a home automation page. I also have a relay board and multiple lights hooked up, (using the GPIO pins on ...
0
votes
0answers
9 views

Bash script not working with crontab [duplicate]

I own a raspberry pi that runs raspbian jessie. I'm using this raspberry with motioneye as a system surveillance. Motioneye records files to a sd card but i want to delete older files in folder /var/...
0
votes
2answers
703 views

Raspbian jessie - cronjob doesn`t work

I know there are aready many questions about this topic, but no answer could solve my problem. I use a Raspberry Pi B+ with the operating System Raspbian Jessie. The Raspberry is said to synchronize ...
4
votes
1answer
954 views

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 = datetime....
2
votes
0answers
32 views

Game Server Lag Every 2 Minutes or So on Raspi 2

I run a DarkPlaces Quake server on my Raspberry Pi 2. Every 2 minutes or so, there is a massive lag spike in game play, but it's fine when it's not doing that. I have checked crontab, but neither my ...
1
vote
1answer
119 views

Cron Job running, but python script not executing on my RPi

I'm having a bit of problem with my cron job on my RaspberryPi. It's a python script requesting json data from a bitcoin exchange, and packing them into a tarball. When executing the script from ...
1
vote
1answer
95 views

When to call script that can capture IP in python

I'm trying to show my local IP on an LCD during startup. My script worked fine during normal testing via the command line, but when called at startup it doesn't seem to be able to fetch the IP. I ...
0
votes
1answer
198 views

Using Wiringpi in crontab to control GPIO pins on RaspberryPi

I am trying to create a cronjob, which sets the GPIO pin 10 to high at a given time. I am using the crontab of the default user "pi" and have verified, that the command gpio -g write 10 1 works ...
0
votes
1answer
277 views

Where is the cronfile located at? [closed]

I am writing a python program to go on the raspberry pi. I am currently making an installation script that will as part of its installation process, add a line on cron so that it will automatically ...
-1
votes
1answer
62 views

Cronjob: Visit a webpage everyday

sadly I'm not THAT into Raspberry Pi to answer it so myself. I googled, but i hadn't found something helpful.. Is there an option to let the RasPi "visit" a specific link (php) once a day to a ...
1
vote
1answer
2k views

cron not running @reboot command

@reboot commands are not being run from cron. I verified this with grep cron /var/log/syslog which showed Jul 25 16:17:01 picam2 /USR/SBIN/CRON[4487]: (root) CMD ( cd / && run-parts --...
0
votes
2answers
313 views

Transfering mp3 files from a remote server to the RPi via cronjob without overwriting [closed]

I succeded in transfering files via ftp from a remote server to a raspberry, #!/bin/bash -vx ftp -in IP_SERVER<<END_SCRIPT quote USER rem_user quote PASS rem_pass bin prompt:off cd /...
3
votes
3answers
88 views

How do I add a task to Crontab

I am making a program for the Raspberry Pi to use, as part of its installation, it need to add a task to crontab so that it will run on bootup. I know if I type in crontab -e then add the line "@...
1
vote
0answers
130 views

Problem with my reboot-on-wifi-lost script

I have set up my raspberry pi as a small Webserver, connected to a WLAN-Hotspot. I set up a script I found on the internet to reboot the raspi once it looses internet connection or is not able to ping ...
1
vote
2answers
125 views

run tunslip6 on bootup

I want to run tunslip6 on bootup and so far I tried adding this line - sudo ./tunslip6 -s /dev/ttyUSBx abcd::1/64 -v4 to crontab, accessed via terminal through sudo crontab -e But tunslip doesn't ...
5
votes
2answers
486 views

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 ...
2
votes
2answers
292 views

crontab job not working properly

I was trying to use my pi and a bluetooth speaker as an alarm clock. I've setup a cronjob by doing sudo crontab -e in the crontab file, I added 40 8 * * 1-5 /home/XXXXX/alarm.sh &> alarm....
1
vote
4answers
289 views

Issue scheduling a task in raspbian to email my out facing ip

I am trying to have my pi check my outside ip address every 5 minutes then compare it to the current ip stored in a text file. If the ip is different then I want it to update the text file, and email ...
2
votes
2answers
163 views

/dev/null folder doesn't exist. Should I create it?

I am pretty new to the Rasperry Pi (and linux in general). I am currently using it as an irc bouncer. I have set a cron entry to make it check to see if znc is running every 10 mins. */10 * * * * /...
1
vote
1answer
776 views

Cron Job will not run from boot on Rasberry PI 2

Hey guys so I am relatively new to programming and am attempting to run a program from boot using a cron job on a rasberry pi 2. So I went into the terminal and accessed the cron tab, I then entered "@...
2
votes
1answer
2k views

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 ...
1
vote
1answer
1k views

How to shutdown GPIO elegantly when using kill to stop Python script running in the background?

I'm using GPIO in a Python script, and I've wrapped my code in a try... except block so that GPIO is exited elegantly if I need to abort the script: GPIO.setup(17, GPIO.OUT) # Configure GPIO so that ...
1
vote
4answers
5k views

Can't run python script from cron

Running latest version of Rasbian and want to execute /home/pi/temp.py from cron every 2 min. Have chmod 755 on the file When I run the command from the prompt it executes fine and the script does ...
2
votes
1answer
1k views

How to run a script on LXDE startup in Wheezy?

I have two scripts, slideshow_start.sh which is the main script I am trying to run (simply a slideshow using feh). And slideshow_start.py which just calls slideshow_start.sh using os.system("<path ...
2
votes
1answer
169 views

Dynamic DNS Cron Job (duckdns.org) root or user?

I have an account with duckdns.org and on the PI 2 I would like to know if I should install and run the cron job as a user or as root.
1
vote
2answers
186 views

Cron error with Python script

I have a python script that I would like to run in every hour. The cron command look like this: 54 * * * * root python /home/pi/moka/olx_multi.py 2>&1 The script is not running and I ...
2
votes
1answer
158 views

GPIO does not work on reboot

I am using cron to start a program on reboot for my Raspberry Pi (running Raspbian). This program rings a bell hourly based on the current time. When the program is run manually using: sudo start-...
1
vote
1answer
128 views

Missing log file

I wrote a .jar file that is supposed to be run once a day that interacts with Google App Engine. When I run it from the computer, it runs just fine and creates a logfile that details some statistics. ...
2
votes
2answers
524 views

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 ...
2
votes
2answers
3k views

How do I pass a variable to a python script run from crontab? [closed]

I am running a python script using the following command: 0,30 * * * * python /home/pi/pythonscripts/script.py & and I would like to pass a variable 'test' to the script in the crontab, ...
0
votes
2answers
652 views

automatically restart service on boot

I'm still suffering from the problems I described in this post, and since I can't find a solution I've come up with a workaround. I'm thinking if I can use cron to schedule a restart of the ...
3
votes
1answer
258 views

cec-client works when run from cli but not from cron

So when I run either of the following from the cli (SSH session) my pi will turn on my Samsung TV: echo "as" | cec-client -s echo "on 0" | cec-client -s However when I but either of these into cron ...
1
vote
2answers
6k views

Cronjobs not working

I've got a problem with my cronjobs and I'm not able to solve it on my own. That's what i wrote into crontab -e (with newline at the end): SHELL=/bin/bash */1 * * * * /home/pi/Projekte/C/CRONTEMP.sh ...
2
votes
1answer
125 views

Motion disable during the night

I use my RPi to periodically take pictures, both snapshots and of detected motion events. Is there any way to stop motion from taking pictures during the night? For example I imagine this could be ...
1
vote
0answers
861 views

crontab not starting command on reboot

I need a command to run at reboot. This command is called script.sh #!/bin/bash ibeacon scan | /home/pi/test.py This command pipes input to a python program I wrote called test.py. #!/usr/bin/...
0
votes
2answers
5k views

Why are system logs not rotating?

logrotate.conf says rotate logs weekly, but my logs haven't rotated for 5 weeks. What could be stopping my logs from rotating? Logrotate.conf: # rotate log files weekly weekly # keep 4 weeks worth ...
0
votes
1answer
1k views

Running a PHP Mailer Script via Cron

I have a php mailer script that needs to run every hour via cron job. Basically it collects information from a database attaches this in the phpmailer via html and sends it out. Via the web service ...
0
votes
1answer
94 views

ifconfig don't work with cron

I set up a cron job with this test script: #!/bin/sh date >> /media/log/crontest.txt ifconfig tun0 >>/media/log/crontest.txt And in this crontad -e */1 * * * * /media/config/pia/tmp ...