Cron is used to execute scheduled commands. It acts as a task scheduler on Linux and UNIX systems which will execute commands at specified times set by the user. Cron has a great deal of customization and is often used on server environments where common tasks are run on a regular basis.

learn more… | top users | synonyms (2)

0
votes
0answers
14 views

Cron job doesn't execute php file and normal file

I have two files, that needs to be executed every evening. PHP file contains the latest records from database, and creates a source file in same directory. And a normal file, even doesnt execute. I ...
1
vote
1answer
6 views

Cannot get cron.service status using systemctl

I noticed my cronjobs were running at the incorrect times, so I changed my time zone. I now need to restart the cron daemon, but none of the commands I'm using are working for me. Every one of them ...
0
votes
1answer
10 views

Change timings of unattended updates

I have unattended updates set to run daily on a 14.04 server. It is run by cron.daily at midnight along with other jobs. I would like to change the time that unattended updates runs but not the other ...
0
votes
1answer
33 views

Running Bash script at login

This question has been asked numerous times but for some reason, none of the solutions proposed worked for me. I just want to run a simple script after the user has logged in. Here are my attempts: ...
0
votes
1answer
21 views

Cron doesn't start any command

I have a problem with cron on my Ubuntu VPS. Wanted to plan reboot for every day at 12:30 so I've used command crontab -e added line 30 12 * * * reboot And nothing yes I am logged as ROOT during ...
1
vote
0answers
28 views

How to check if a cron job is running or not through php script?

Back to my question How to check if a cron job is running or not?, the answer there is valid which stated to redirect output to a file and test. 15 * * * * /usr/bin/php ...
4
votes
0answers
42 views

Ubuntu 14.04 - crontab @reboot hang my PC

Trying to resolving the bug for KWORKERS HIGH CPU, as suggested in this answer. I put in my crontab the row: @reboot echo "disable" > /sys/firmware/acpi/interrupts/gpe06 After the reboot, the ...
14
votes
1answer
1k views

What happens if you use @reboot reboot in crontab file?

What would happen if you use: sudo crontab -e And add the line: @reboot reboot Will it go into a infinite loop of rebooting?!
1
vote
3answers
50 views

How to check if a cron job is running or not?

I added the following command in crontab -e: 15 * * * * php /home/rizwan/PHP-workspace/mgstore/testcron.php I need to run testcron.php every 15 minutes; for testing purposes I used the following ...
1
vote
0answers
13 views

Suspending when CPU idle

I am using 14.04 (Trusty). I have Power -> Suspend when inactive for 2 hours. This works fine if I am logged in and then walk away. But if I am not logged in, it never suspends. Moreover, I understand ...
1
vote
1answer
27 views

run script from directory using cron

I have this in my crontab: 59 23 * * * /home/peter/Documents/script.py > /home/peter/Documents/log.log 2>&1 But I keep getting /bin/sh: 1: /home/peter/Documents/script.py: not found in ...
1
vote
1answer
21 views

Why doesn't my second cron task get run?

I have these two task to be run. The first one gets run every 1 minutes and I want the second one to be run at hour:minute every day every month. */1 * * * * python /root/vine/hei.py 22 20 * * * ...
1
vote
0answers
21 views

Accidentally enter “crontab” without -e

Now my root crontab is entirely blank. I enter some crone tasks into this blank crontab(I typed crontab -e again). Even though I see cron is running(pgrep cron returns a number), no cron job is ...
1
vote
0answers
27 views

How to interpret this code?

I setup a cronjob send me notification using notify-send. I tried several methods from different several site and then finally below code works. 55 * * * * eval "export $(egrep -z ...
0
votes
0answers
15 views

Improperly set display when running a root crontab job involving GUI

When running the script below from my local user crontab, with sudo before /usr/bin/FreeFileSync (last script's line), a small progress window opens on my GUI and things go well. The only thing is I ...
1
vote
1answer
39 views

Script to program periodic switch-on and off

My PC has a problem in its motherboard so when it's inactive for many hours after being on it won't start up, both when it's completely switched off or suspended. It takes between 8 to 18 hours to ...
2
votes
0answers
36 views

cron.daily gives apt error. “not found”

I recently upgrade to Ubuntu 15.04 and after that I get these strange errors in my cron e-mail. Sadly I didn't remember what version of ubuntu I was upgrading from but I think it was the latest before ...
-1
votes
2answers
103 views

How to run a cron job every 36 hours?

I have been blowing my mind over few days to do this.. (Don't ask me why I want to do it!) How about adding two jobs like this? 00 06 current_day-31/3 * * job 00 18 next_day-31/3 * * job
5
votes
1answer
120 views

How do I run a bash or python script via cron, visible on the local desktop

I have a production server that runs several bash scripts on the local desktop. Two scripts run all the time and don't need to be stopped. I have a third Python script that I need to start at 9AM. It ...
0
votes
0answers
22 views

Any problem launching script with infinite loop using cron?

If I run a shell script containing an infinite loop using cron @reboot, will that hang up the cron daemon or does cron keep moving and not wait for the job to terminate?
0
votes
1answer
41 views

MySQL Crontab Check

I have a serverpilot.io server running from digitalocean (1gb Ram), MySQL will crash once a week, the stats say the server is using ~256 mb out of 1 gb, but mysql will crash saying out of memory.... ...
-1
votes
0answers
44 views

Script does not run properly under cron - restart OpenVPN

I have a OpenVPN Server, that I connect via a VM (Ubuntu 14.04). In this VM I have the following script, that checks if the connection is up, and then if it's down, it restarts the openvpn service. ...
1
vote
2answers
54 views

How can I start Steam with a cron job?

How can I start Steam using a cron job? I've tried just putting steam in cron, but it does not work. I've tried some odd stuff that I don't understand like DISPLAY=:0.0 steam %U but that does not ...
2
votes
0answers
21 views

Crontab not running 24 hours

I've the following job in /etc/crontab: @hourly root /usr/bin/script Here is the script: #!/bin/bash killall tcpdump date=$(date +%G%m%d-%k%M) tcpdump -n port 5060 -w ...
-1
votes
2answers
54 views

How To Start Python Script On Bootup [duplicate]

I have a couple of Python scripts I want to launch at bootup. One is located at the path below. /home/my-sickbeard-install/SickBeard.py Since Cron has never ever worked for me and nobody on about 5 ...
1
vote
3answers
75 views

How to change niceness of process by name

Java process is killing my computer (Intel i3, 8GB RAM). It takes over whole CPU and system starts to hang. I was trying to change niceness of java processes but i have to control it for all time and ...
0
votes
1answer
24 views

App Won't Start On Bootup When Using Cron

I have a ts3.desktop file in my /usr/share/applications folder that I want to run on system boot. The procedure I used to try and get this working is below. crontab -e Then in the editor (it opens ...
0
votes
1answer
39 views

Run “rails s” on another directory in a single line

I wanted to make a crontab expression at boot, running rails s in another directory. I can't find how to change directory in the same expression. I've tried rails s /directory but it doesn't work ...
0
votes
1answer
44 views

Is it there a Text User Interface (terminal application) which does what Kalarm do?

Since there's no updates on the enhancement request raised by @DavidJarvie on the KAlarm Project, documented in my previous question over here: http://askubuntu.com/a/257843/9598, I started wondering ...
0
votes
2answers
17 views

cron job wont execute the script

I have the below script #!/bin/sh tail -fn1 /app/agile/agile931/agileDomain/servers/01mustgagl01.natusmed.natus.com-AgileServer/logs/agileDomain.log| \ while read line ; do echo "$line" | ...
1
vote
1answer
133 views

Disable TRIM to avoid file system corruption

I read the following article on a problem with TRIM and Samsumg. I am running Ubuntu 14.04.1 and I have a Samsung PRO 850 of 250GB. I am worried to get my file system damaged due to same firmware ...
0
votes
1answer
23 views

Periodically cut and paste files

I'm running a model that generates quite a stream of outputs. In fact they are so many that it ends up dying because the hard-drive is filled up Is there a way (maybe with cron) to periodically scan ...
1
vote
1answer
41 views

Is there a way to simulate a bash shell inside the crontab file?

I noticed when I tried to use bash's 'date' inside a command, I could not, when I tried to pick up a file that varies by date.
0
votes
0answers
17 views

Xchat and cronjob?

I've submitted a thread in Ubuntu forums. Where I talked about if there's a way to automatically send a message after a certain amount of time. One guy replied and said to me that he has wrote an ...
0
votes
0answers
22 views

Logrotate errors on weekends

Update: After a lot of trial and error, I figured out that my logrotate for the giant backup was causing all the errors on the other logrotates. I had tried to only get 2 rotations so it'd look like: ...
0
votes
0answers
47 views

Cron jobs not running while OS is locked

I have a cron job that runs a simple bash script to swap out the current wallpaper with a random image from my wallpapers folder every minute. This works fantastically for me. However, whenever I lock ...
0
votes
1answer
42 views

Help Creating Rsync/Crontab script that checks if ExtHD is mounted before running

I have a toshiba 3tb ExtHD and it consistently gets unmounted if I say shutdown computer then turn it on to a live cd then reboot back into OS. Its a simple fix, all I do is unplug and re-plug the USB ...
0
votes
1answer
55 views

Cron rsync problem

I have a problem with my crontab setup for rsync. Forst here's my crontable: SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command 17 * * ...
1
vote
2answers
25 views

Strange root cronjob - I've never set it

I was monitoring my crontab log and I saw this: Jun 12 20:17:01 HP250G3 CRON[4798]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Is this normal? I've never set up any cron ...
1
vote
1answer
70 views

One rsync cronjob runs, but doesn't copy files

So my intention is to backup some key directory with my documents and my MySQL data file etc. I have a cronjob set and it seems to work for all commands in there. Files are copied daily into a backup ...
0
votes
0answers
60 views

BQ E4.5 r22: setup an alarm from a script run by user phablet or its cron job

I run in my BQ E4.5 Ubuntu phone a cron job which monitors every 5 minute the battery level. I'd like to be able to create an alarm let's say if battery is below 10% to get the users attention of the ...
2
votes
1answer
39 views

How do you copy something to the clipboard when running a script triggered by incron?

I've got a script that works perfectly when I run it as myself on the command line but when the script is run by incron the line that copies a value to the clipboard doesn't work. Basically I'm using ...
0
votes
0answers
24 views

cron script issue when sending mail to multiple recipients

I have a script to generate reports every morning and mail it out to multiple teams. Since I want to make the script generic (there are many reports) I added the following in each script- ### Mailing ...
3
votes
1answer
48 views

Why my cronjob was launched on the bad day?

I wanted to launch a job at the beggining of every month, but only on week days. To do so, I've added this line in /etc/crontab file: 7 0 3-5 * 1-5 root ( test "`date '+\%d'`" = "03" || test ...
0
votes
0answers
15 views

Cron <root@pfsense> /usr/local/pkg/swapstate_check.php

Why I am getting this error in pfsense: /usr/local/pkg/swapstate_check.php:not found. Please can someone help
1
vote
2answers
37 views

My Cronjob dont work!

i've added a cronjob with crontab -e and then i've added: */10 * * * * sh /home/ftb/backup.sh in my backup.sh is: rm -rf backup/world cp -r ftb/world backup/ My backup.sh works if i ...
1
vote
1answer
40 views

Ssl for bitcoind

Hello I need to use bitcoin in my website I compiled it and I use php json rpc for communication with the server and I use crontab each minute for a check of the deposit but in bitcoin wiki ...
0
votes
0answers
29 views

R/Shiny WebApp logs, running in shell (Ubuntu crontab)

I'm running, using crontab, an R/Shiny WebApp. The crontab expression looks like this: @reboot R -e 'shiny::runApp(...)' | tee /var/log/shiny-server.log I've also tried @reboot R -e ...
1
vote
0answers
11 views

How to track the Internet connectivity of two PCs simultaneously using a script?

I have two PCs and I want to monitor the Internet connectivity in both of them and make it available in a page (not local, and something like example.com/statuses) as to whether they're currently ...
0
votes
1answer
57 views

Unable to add program to startup list

I want to add the MEGA sync program to my Ubuntu 12.04 startup list. The download package for MEGA includes an executable which starts the program when opened. Either by finding it with the gui or ...