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
2answers
138 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
59 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 /media/SIPTraces/filename-$...
0
votes
2answers
338 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
4answers
215 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
38 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 ...
1
vote
1answer
191 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
97 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
25 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
2answers
888 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
38 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
201 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
1answer
149 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
168 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
190 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
131 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
183 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 ...
2
votes
1answer
77 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 ...
3
votes
1answer
76 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
2answers
61 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
109 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 https://en....
1
vote
1answer
156 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 'shiny::runApp(...
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
110 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
264 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
57 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
138 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
56 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
37 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 ...
2
votes
1answer
280 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 /var/...
9
votes
3answers
766 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 network-...
1
vote
0answers
65 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, ...
9
votes
2answers
13k 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
34 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
291 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
1k 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 /etc/cron....
4
votes
2answers
269 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) >> /var/log/...
2
votes
2answers
112 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 ...
2
votes
0answers
227 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
166 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
297 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 DJANGO_SETTINGS_MODULE=myproject....
2
votes
1answer
549 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
495 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
136 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
125 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
232 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 ...
5
votes
3answers
5k views

Why putting a script in /etc/cron.hourly is not working?

I put an executable script in /etc/cron.hourly, but that script didn't run every hour actually it never runs at all. Here is the script(Hour-sound) that i made: #!/bin/bash mplayer ~/Music/sfx_msg-...
1
vote
1answer
180 views

log cron job in real time

I have a Python process which I run nightly via a crontab. It scrapes an API which I have limited access to so regularly has to stop and wait for an hour. By my estimates the job should take 5-6 ...
3
votes
2answers
10k views

What is the correct way to edit a crontab file?

I am trying to automate the refreshing of awstats for my webserver and understand that i need to use cron to set that up. So each user has a crontab file? I was following the instructions here ...
3
votes
0answers
327 views

No crontab for user, yet cron jobs are running

I have no apparent crontab: $ contab -l no crontab for gauthier Yet, something seems to be running as my user: $ tail /var/log/syslog ... Apr 13 16:25:01 sobel CRON[22043]: (gauthier) CMD (rsync -...
2
votes
1answer
33 views

Time based access to samba server

I have a 14.04 server running samba. I'd like to institute some time based access to the server. I host media for the whole house, and the goal is for the kids' televisions to become useless at a ...