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)

2
votes
0answers
13 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
37 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
2answers
56 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
21 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
0answers
22 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
37 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
14 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
64 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
20 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
30 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
15 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
13 views

Logrotate errors on weekends

I currently run an Ubuntu 14.10 server that is used to strictly store backups of my apps. I have a couple of custom (and simple) logrotate scripts that go through and rotates/gzips my database ...
0
votes
0answers
28 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
21 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
32 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
17 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
57 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
52 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
34 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
21 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
46 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
9 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
31 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
29 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
21 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
51 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 ...
3
votes
3answers
116 views

Cron execution question

Suppose I set up a cron job with anacron, or with crontab -e. Now, what if my machine is switched off at the moment cron should have executed the scheduled job? Would the job be executed as soon my ...
0
votes
1answer
41 views

Cronjob create on webpage

Is there a easy programm to create and administrate cronjobs over a webpage? Something like cronacle? Also with user management or something else? It is not for a specific requirement, but I dont want ...
1
vote
1answer
45 views

Crontab - don't log? How can I do it right?

I've search for a answer of my problem but I can't find the right one. So I try it my self. I've got an Ubuntu Server and try to create a TeamSpeak3 Server - check file with loggin function. This ...
0
votes
1answer
20 views

crontab only runs one job

Hi i'm new to ubuntu and im trying to run two jobs (clones of Virtualboxes) with the help of crontab while both run in the commandline orgamax clone wont run in the crontab both scripts are in ...
1
vote
0answers
21 views

Log rotate daily time for specific application

I know that similar question has been already asked, but there was something I am missing: Is there any option to specify the hour of rotating the logs, but only for one application ? I know that ...
1
vote
1answer
51 views

Crontab on Ubuntu Phone - Scheduling synchronisations

On my Aquaris E4.5 I have successfully configured syncevolution to synchronise my CardDav Contacts and CalDav Calender entries. Now I would like to schedule synchronisations. However, since ...
7
votes
3answers
119 views

How to persist on a wifi connection after disconnection?

I've got a Ubuntu machine running a software that requires internet. However, sometimes the wifi fails (router reboot for example) and doesn't find the network again, until I manually service ...
1
vote
0answers
20 views

Screen in crontab

I'm trying to run 9 screens windows by crontab, and then, run some codes (basically the same for all of them), but they don't work. The code runs all of 9 screens, but run code only on the first. Aah, ...
0
votes
2answers
79 views

Where are cron logs stored on Ubuntu 14.04?

I am trying to troubleshoot why my cron task isn't working sometimes. Where does cron store log files by default? Is it /var/log/syslog ? I have looked at that file and it is empty. Do I need to ...
1
vote
0answers
22 views

First-time backup landed in the wrong place

I used Backups with the following settings: Folders to save: Home(jeg) [ON] Folders to ignore: Trash, ~/Downloads [ON] Storage location: 799 GB Volume [ON] Folder: LinuxBackupDirectory [ON] ...
0
votes
1answer
67 views

How to create a perl script which checks the system stats(CPU,RAM,HDD) and sends an alert mail? [closed]

The script is for adding to the cron tab. The flow of the shell script should be like this. 1. Checks the CPU state. 2. Checks the RAM usage. 3. Checks the HDD usage. 4.Sends an alert mail to ...
1
vote
1answer
81 views

Cron script Exec format error

My cron job/script fails. I'm running mythbuntu 14.04. With previous version of Mythbuntu I have a problem, any help would be greatly appreciated! I set up cron.daily with: $ ls -la ...
4
votes
2answers
77 views

Why my bash-script doesn't work with cron?

I created a bash script to automatically update my Ubuntu Server. Here is the script: #!/bin/bash apt-get update apt-get upgrade echo "Update am $(date "+%d. %m. %y|%H:%M:%S) >> ...
2
votes
2answers
34 views

kcron not running commands

When I add a new command to kcron it seems to work fine. I hit Run Now and it works perfectly. BUT when the task is scheduled it never runs. How do I get kcron to run commands exactly as Konsole can ...
0
votes
0answers
49 views

Why does rsync run in crontab not work the same as from the command line?

I have rsync scheduled to run in my root crontab with the archive option: 0 22 * * 6 /usr/bin/rsync -avv --delete --log-file=/home/brian/rsync.log /home /media/wdsentinel/home_backup When I add ...
2
votes
0answers
120 views

How to make speaking clock ( via cron and festival tts) work while playing music

I switched to linux since last 11 months,I am on ubuntu 15.04, I have learned to use cron for various tasks. I use Cron to announce time via festival tts(using mbrolla voice) hourly. This is the ...
0
votes
1answer
33 views

how to run scheduled task ,after resume from sleep,only if computer was sleeping at the time of schedule

i have a cron backup job set up, but i would like it to run after resume from sleep, if my computer was asleep at the scheduled time. example: backup script runs every night at 2:00. often i put my ...
1
vote
2answers
83 views

error while cron scheduling a sh script

This is my shell script which i want to schedule using cron job. parser.sh #!/bin/bash source .profile workon venv cd /home/ashish/deployments/myproject export ...
1
vote
1answer
61 views

ifdown in cron bash script fails to run

I have a script that is run when a server (Ubuntu 14.04) boots up using @reboot in crontab (Under the root user) @reboot /bin/bash /root/init.sh >> /var/logs/vminit.log The script runs a ...
1
vote
2answers
84 views

How to execute a php script using cron?

I am trying to execute a php file via cron every 2 minutes, but it's not working. My crontab is: */2 * * * * usr/bin/php /var/www/test/cron.php What am I doing wrong?
2
votes
1answer
50 views

Reset hibernation delay from command line

My hibernation on Ubuntu 14.04 LTS works fine. But someone keeps changing its delay to never hibernate. I am tired of paying days' worth of electricity for 10 minutes usage a day. Is there a way I ...
1
vote
1answer
37 views

Cron can't find file at night? [duplicate]

I have a cron job written to root (I'm writing to a log in /var/log so need root permission). The problem is that sometimes it works, and sometimes it doesn't. The cron job is simply to call a python ...
0
votes
1answer
46 views

sleep getting hang in shell script

I had a cron script running on my Ubuntu PC ( 12.04.3 ) which periodically checks for disk space. There was a "sleep 5" also used in this script. This system was up for a month, but an issue is ...