the job scheduler in Linux and other Unix-like operating systems. it enables users to schedule tasks to run at specified intervals.

learn more… | top users | synonyms

0
votes
1answer
10 views

Where is the cronfile located at? [on hold]

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 ...
0
votes
1answer
18 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 ...
0
votes
1answer
28 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
66 views

SOLVED - 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 ...
2
votes
3answers
23 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
52 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
15 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 ...
3
votes
2answers
55 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
52 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 &> ...
1
vote
4answers
130 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
90 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 * * * * ...
0
votes
1answer
186 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 ...
1
vote
1answer
308 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
299 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
298 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 ...
1
vote
1answer
365 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 ...
1
vote
1answer
95 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.
0
votes
2answers
86 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 ...
0
votes
1answer
87 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 ...
1
vote
1answer
69 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. ...
1
vote
2answers
197 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
960 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
194 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 ...
2
votes
1answer
156 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
2k 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
73 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 ...
0
votes
0answers
542 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. ...
0
votes
2answers
2k 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
809 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
47 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 ...
4
votes
2answers
191 views

Reboot via cronjob does not work, it just shuts down without booting up again

I want my headless Raspberry Pi to reboot every night. I have the latest firmware (sudo rpi-update) and Raspbian is up to date (sudo apt-get update && sudo apt-get upgrade). For the cronjob I ...
3
votes
1answer
100 views

Cron running 2hrs early

I checked the time on my pi to make sure it's right by running date and I believe I set my cron job correctly, I wish for it to run at 9am and 9pm, but they're running instead at 7am and 7pm. Here's ...
0
votes
4answers
978 views

trigger cron job from web application

I would like to improve on my project by using cron jobs. Currently, i have a web application that allows me to control servos. However I would like to add another function on the web application ...
2
votes
2answers
1k views

Check a program/script is active and running properly

I can't find guidance anywhere on how, if you're running a (say python) script permanently in Raspbian on a headless RPi, to check periodically it's running ok. I've researched reporting on running ...
0
votes
2answers
1k views

control motion via cron

If this site gives this as an example of controlling Motion via cron as: 0 9 * * * root /usr/bin/lwp-request http://localhost:8080/0/detection/start > /dev/null 1) is this the correct sintax to ...
0
votes
1answer
231 views

Controlling motion's threshold automatically on my PI

I have Motion installed on my PI and having difficulty trying to control the threshold via the command line. Motion's wiki suggests that this type of control can be done using cron like this: `0 9 * ...
0
votes
1answer
236 views

script runs at terminal - but not in cron

I'm logged in as user pi via SSH and have a wifi checking script wifi_test_1.sh in the following directry: /usr/src/scripts/wifi_test_1.sh When i enter the command /usr/src/scripts/wifi_test_1.sh ...
0
votes
1answer
243 views

SSH Tunneling and Cron Job

my problem is relatively simple to explain. I created a sshtunnel.sh script to establish not one but three ssh tunnel in order to obtain remote access to my Raspberry (between every ssh tunnel command ...
1
vote
1answer
231 views

ifup wlan0 once an hour using cron?

What will happen if i do a ifup wlan0 using cron once every hour? Will it cause problems if the wifi is already up?
2
votes
0answers
346 views

cron scheduler not starting

I have a few cron entries for root and for a regular user ,but sometimes after rebooting cron stops working completely. pgrep cron returns nothing. Running crontab -e fixes this but I can't do that ...
0
votes
1answer
1k views

Python: Script to start Omxplayer from crontab

I am trying to have cron run a python script that plays an MP3 file. It sounded easy but I have been searching and struggling to find the correct solution and was hoping someone could steer me in the ...
1
vote
2answers
1k views

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 ...
0
votes
0answers
303 views

cron jobs won't run after boot on linux arch

I'm trying to setup a cron on boot to run yet it doesn't seems like it's working( [root@alarmpi ~]# crontab -l @reboot /root/cgminer XXXXXXXXXX @daily `which pacman` --sync --refresh ...
0
votes
0answers
330 views

Build a connection between webcam and cron using python -opencv

I am using python-opencv to build a program to capture images through webcam and to save them.I want that program to start at boot using cron.My python code and cron line is as follows: ...
1
vote
1answer
77 views

Save output files and store them as a dd-mm-yyy hh-mm format [closed]

I run some cron jobs on my Pi. I want to find a way to export all from a command to a file ie: logwatch --yesterday --medium --archive > 'name_of_my_file' where 'name_of_my_file' will be as a ...
0
votes
1answer
882 views

PI streaming audio with mplayer runs for a while and then becomes unresponive

I’ve got a raspberry pi running headless, playing an audio stream through mplayer over wifi. Crontab loads mplayer on boot, as well as a couple scripts: one that pings the router, and if there is ...
1
vote
1answer
391 views

Using Cron to email a folder size

I'm struggling to create a scheduled job in cron to send the directory size to an email address. This is what I've got so far crontab -e * * * * * du -s /path/to/dir | mail -s "test" ...
0
votes
2answers
2k views

Start and run a Python script at boot and use Cron to make sure its still alive

Hopefully someone can tell me if I'm going at this the right way. I have a Python script which I want to launch at boot. That was easy enough by putting a file in /etc/init.d/myBootFile I want to ...
3
votes
1answer
5k views

Confirm system crontab functionality on Arch

Arch ARM comes with cronie cron daemon. However I can't find the system crontab file and running crontab -l as root returns no crontab for root. systemctl is-enabled cronie reports enabled I have a ...
0
votes
1answer
351 views

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 ...