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
1answer
395 views

Check if torrent file is complete before copying

I have a crontab command that daily copies .iso files found within my torrents folder into an iso directory on a separate partition. My problem is that multiple .iso files will still be in the process ...
0
votes
1answer
170 views

How do I setup php and mysql cronjobs on ubuntu 12.04 server?

just made a lamp install adn got sftp working. My question now is how do I setup cronjobs in ubuntu server? I need to make some cronjobs for my php/mysql application. Look for un-activated users in ...
1
vote
1answer
45 views

Crontab woes — help me figure out why it's not running

I'm having troubles creating a crontab that executes a series of php scripts when I specify it. From what I can tell the cron doesn't even run... Also if someone knows a method to allow me to run ...
0
votes
4answers
669 views

php script not executed by crontab

I have setup a cron to execute one of my php scripts. But the problem is the php script is not being executed at all not even partially. Here is the cron I have set up 45 23 * * * /usr/bin/php -q ...
1
vote
0answers
31 views

crontab command in the 2nd line doesn't run

I have these 2 lines in cron tab. The 1st command executes but the 2nd one doesn't. It just doesn't run. No traces in log. I have a new line (enter) at the end. I have restarted the cron service ...
0
votes
0answers
58 views

Script is not getting executed when running from crontab

I have a simple shell script that calls a pearl script and redirects its output to a text file. When I run this from shell it exceutes, but when I do this from crontab, it does not. #!bin/sh ...
1
vote
1answer
202 views

how to know WHAT and WHEN the next cron job is?

Is there a tool or a way to view the next scheduled job (in the system or at least at the user level) and its time, without looking into crontab (crontab -l)? Edit: Imagine that there are 500 ...
0
votes
1answer
1k views

Script not running from crontab but running from terminal?

The script is running from terminal but not from crontab.The script code and error i am getting is written below : Cronjob */5 * * * * cd /root/; python mkdir.py Script #!/usr/bin/python import ...
0
votes
2answers
880 views

Cron creating empty files in the root directory

It creates files with 0 Bytes, with the same name as the php being called in the task. I have a task that runs every minute, my folder /root is crowded. My task: * * * * * /usr/bin/wget -q ...
4
votes
1answer
347 views

Crontab won't execute vlc live stream

Im trying to auto start and stop a rtps stream via vlc in the crontab: sudo crontab -e 15 9 * * * vlc -vvv rtsp://user:pwd@xxx.xxx.xxx:xxx/stream1 and nano /etc/crontab 14 9 * * * camera vlc -vvv ...
0
votes
1answer
526 views

Give www-data permissions of root?

I want to access the root crontab from web interface.I have Apache and PHP installed.I have a project in which i have to change the job timings in crontab. How can i change the timing of crontab jobs ...
0
votes
0answers
195 views

crontab doesn't save the buffer

invoking crontab via crontab -e allows me to write a crontab. when I press ^X, Y, then ENTER, nano tells me [ Cancelled ] at the bottom of the screen. however, sudo crontab -e works. how am I ...
1
vote
1answer
40 views

cronjob to store home-ip

I'm working out a cronjob to store my current ip (home-server) on my external VPS server in a database. I can now use the ip to connect to my home server without using DynDNS. (OK, probably you think ...
0
votes
1answer
160 views

Starting xterm windows via cron

I am using cron on Ubuntu Server 12.04 to schedule the system to automatically reboot at midnight, and on reboot, execute a script that starts a vnc server and opens eight terminal windows and runs a ...
0
votes
1answer
240 views

How do I make my system crontab fetch a URL and email it to me?

I am running Ubuntu 12.04 with Apache module. I opened crontab by executing vi /etc/crontab It says on the top that unlike any other crontab you don't have to run the 'crontab' command to install the ...
0
votes
1answer
285 views

Ubuntu 12.04 how to completely remove anacron

I am using Ubuntu 12.04 for an embedded project. I need cron jobs to execute only at their specified time, because time may be stepped forwards (resulting in a missed job) but those jobs should be ...
1
vote
2answers
274 views

Can't find where scheduled task is set

I have a production server running a scheduled task that I simply can't track down. It seems that it is running dbdump.bash on a daily basis, but none of the cron files have a reference to that or ...
4
votes
1answer
1k views

Disable daily anacron mail updates

Every day, I get the following mail delivered by postfix: From: Anacron <root@name.domain> To: root@name.domain Subject: Anacron job 'cron.daily' on name Content-Type: text/plain; ...
1
vote
2answers
308 views

Cron job isn't working

I have an sh file called m.sh with the contents: echo "Cleaning memory" sync; echo 3 > /proc/sys/vm/drop_caches echo "" free -m echo "" ps cax | grep java > /dev/null if [ $? -eq 0 ]; then ...
1
vote
2answers
160 views

How to craft a crontable entry that keeps MongoDB running in the event of a crash?

I need help crafting a crontable entry that will make sure the MongoDB service (daemon) is running on a particular port and if it is not, start it. I want to set this up so that if MongoDB crashes, ...
0
votes
3answers
241 views

Restart Network-Manager every n minutes/hours

I have a problem with my Ubuntu machine. Every 15-20 mins my wifi stops working. The connection remains intact but internet access dies. Whenever this happens - I restart Network-Manager and all is ...
0
votes
1answer
1k views

when I run a bash file manually, it works, but crontab can not run it?

This is my sh-file: http://paste.ubuntu.com/5816543/, that I use this to download youtube files in a specific period per day. when I drag the file (y.sh) into the terminal and press return key, it ...
0
votes
0answers
48 views

Can job instances of the same CRON job be executed at the same time?

Suppose I have a cron job that runs every 5 minutes, i.e. a python script that updates a DB. If the cron job takes more than 5 minutes to complete will another instance of the same job be executed ...
1
vote
1answer
179 views

Cron job bash script to restart desktop sharing?

I'm having trouble with desktop sharing crashing while during remote sessions. Is there a way to set cron to check and restart, if necessary, the desktop sharing application with a bash script?
0
votes
4answers
78 views

Minutely cron job is not running

I added the line */1 * * * * /home/zach/test.sh to my crontab, where the contents of /home/zach/test.sh are as follows: touch /home/zach/test.txt Yet, no file test.txt is being created in that ...
2
votes
1answer
519 views

Schedule to turn off monitor via crontab?

I want to turn off monitor on a specific period of time automatically (for example between 07:00 and 11:00). Is there any command to be set in crontab file? Is there any better way? In summary: ...
5
votes
2answers
8k views

How can I see/stop current running crontab tasks?

How can I see crontab tasks which are in progress? How can I stop crontab tasks which are in progress, manually? Is [this] question about see the current running cron processes? Yes To ...
0
votes
0answers
65 views

How to schedule commands in crontab?

I have this simple task scheduled in cron but it wont happen, the commands I used are crontab -e than added the following line 16 * * * * echo "task working" But the command isnt runnig every ...
1
vote
2answers
3k views

Getting output from a cron job on the terminal

I have a program that prints some output that I would like to pop up on my terminal once every hour during the workday. $ crontab -l 0 07-17 * * * /home/dat/scripts/cron.out syslog reports the ...
3
votes
2answers
1k views

Automating duplicity backups using cron

How do I automate duplicity backups using cron using gpg encryption and the ssh backend?
0
votes
1answer
97 views

Cron fails at night

I have set up a cron job, but for some reason it fails to run during the night. The same job runs fine when i'm running it during the day (i.e. setting up the same job to run in a few minutes and ...
0
votes
0answers
50 views

xgamma run on cron

I am trying to set a cron job to run every minute. I have a script in a directory in my home directory. Inside the script is: #!/bin/bash /usr/bin/xgamma -gamma 2.0 I actually prefer 0.65, but I'm ...
1
vote
1answer
129 views

Need a way to start web cam recording at specific time

I have a laptop with an integrated camera and I want to write a script that will record a 10 minute video when the clock reaches a certain time. What apps/commands can I use to achieve this?
2
votes
1answer
133 views

Crontab not working with inner unix command

I have following crontab entry which does not work. Please can anybody help? @midnight scp /home/xxx/file.txt xxx@yyy:~/zzz/file.txt_`date +"%m-%d-%y"` This command works very well when run from ...
4
votes
2answers
625 views

A script to monitor new files in folder so I can add them to an external XML files

I want to monitor (by cron, I got that part covered :P) new audio files in folders so I can add them toa separate XML files which act as an podcast RSS feed. The file structure looks like this: - ...
0
votes
0answers
282 views

Script giving error of permission denied OSerror 13 from cronjob?

I have written a script from the python to automate scan.I have used nessus for that and used subprocess module in python.Probem is this it's running from the cli bash.... but when i put that script ...
3
votes
1answer
972 views

Hourly GIT Push

Is it possible for me to automate a Git push every hour via a batch script. I would typically type in this: git add * git commit -m "latest update" git push ...
0
votes
0answers
66 views

how to run an application with cron

I want to run an application like transmission on a special time? I know write this at first * * * * * DISPLAY:0 but I don't know what command I have to write after that.
1
vote
1answer
392 views

Machine stops suddenly, Only hard reset can help

It is happens sometimes, im just working and suddenly machine starts lagging. Then it can totaly stops (Nothing works, mouse, keyboard etc.), or sometimes not. Jun 5 16:04:12 c0rp kernel: [ ...
1
vote
0answers
63 views

Backup regimen - is this plan any good?

I have a desktop that has some valuable personal and financial records, photos, etc. I installed a second drive formatted ext3 called 'internalbackup'. I've been using a variety of backup programs, ...
0
votes
1answer
307 views

Why anacron does not call the crontab user files?

I want a special command to be lauched everyday, but dont want to put it in the /etc/cron.d/ because its a user specific user! pg@pipoTower: ~$ crontab -l # m h dom mon dow command 0 0 * * * ...
2
votes
2answers
2k views

How do I setup two cron jobs to run every night at 3:00 and 3:10?

I have an ubuntu home server running virtual box. I have virtual server running on that box that I am having problems with. For now I don't have time to troubleshoot the actual issue but I have ...
0
votes
0answers
123 views

Is there some way to change log level for cron?

I want to change log level to 2 to track the finish of cron jobs. And as a default configuration, it is 1. Can I change the /etc/init/cron.conf file to set this value? And how to setup this?
1
vote
2answers
3k views

executing a shell every minute using cron

i want to run this bash code every minute using cron. I saved it onto /root/activate.sh #!/bin/bash for file in /home/user/torrents/*.torrent do if [ "$file" != "/home/user/torrents/*.torrent" ]; ...
0
votes
1answer
150 views

Can't seem to get script/cron job to work?

ive written a ffmpeg script to mass convert mkv into mp4. when i run the script as my user, and enter my password for sudo privileges it works very well from the command line. the script is: #! ...
3
votes
3answers
2k views

Notify-send doesn't work from crontab

I made a script that should notify me when there's a new chapter of manga that I'm reading. I used the command notify-send to do this. The program works when I am trying to run it in terminal. The ...
1
vote
1answer
197 views

remove completed downoads from rutorrent

I just setup rutorrent after being a long time rtorrent user. I want to remove the completed downloads. When I use a .torrent file i just have .rtorrnt.rc remove the file and rtorrent removes it from ...
2
votes
2answers
664 views

Crontab not running a script

I have set my crontab to run 2 script: $ crontab -l 0 20 * * * /usr/bin/bkp.sh --silent > /home/perforce/logs/bkp.log 2>&1 0 21 * * * /usr/bin/flsbk.sh --silent > ...
9
votes
2answers
4k views

All commands in my crontab fail with “Permission denied”

crontab -e and crontab -l work just fine: $ crontab -l | grep -v '^#' * * * * * /usr/bin/env * * * * * echo 'Hello from crontab' However, I see two messages like this every minute in ...
0
votes
1answer
137 views

cron job not executing youtube-dl command

I want to use the "youtube-dl" command in a cron job to download videos fron youtube. Therefore I created the following cron job: 26 00 * * * /usr/local/bin/youtube-dl -o ...