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
46 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
23 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
91 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 ...
0
votes
1answer
51 views

Online interface to schedule Python script execution

I'm trying to find a GitHub project that allows to setup cron jobs or schedule tasks with a web interface. I have an Apache server running on the Raspberry Pi. How do I navigate to a website and ...
2
votes
1answer
58 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
269 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 ...
1
vote
2answers
326 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
352 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
130 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
120 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
155 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
117 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
216 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
0answers
431 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
299 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
182 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
202 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
65 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
575 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
264 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
1k 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 ...
2
votes
1answer
3k 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
215 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 ...
0
votes
1answer
308 views

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

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 ...
1
vote
2answers
790 views

Two problems with my pi (cron, and bootup w/o HDMI)

I have two problems with my pi right now. 1) The device won't boot unless I have a HDMI cable plugged in.. I am using it headless, and I'm trying to reduce cable clutter, so needing a HDMI cable to ...
4
votes
1answer
998 views

How do I start the cron deamon automatically on Raspbmc?

I'm not able to start the cron deamon automatically on Raspbmc. I tried to configure an upstart and an init script but had no luck.
5
votes
1answer
6k views

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

Cronjob not working - meant to post tot Twitter

I'm trying to get my Pi to post the amount of used RAM to Twitter. I'm using a script I modified myself from here, although I'm not very proficient in bash.. This is the file, it is located in ...
2
votes
4answers
3k views

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

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.
8
votes
1answer
2k views

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)?