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
1k views

Setting cron to run a shell script: random wallpaper from a webpage

I have written a shell script which downloads random wallpaper from a web-page and sets it as a background every 5 hours. Here is the script: #!/bin/bash countervar=1; finish=0; cd ...
1
vote
3answers
2k views

Who is sm-msp-queue and how does he/she/it flood my /var/log/syslog?

I run Linux BeagleBoard-xM 3.12.5-armv7-x10 #1 SMP Fri Dec 13 03:06:20 UTC 2013 armv7l armv7l armv7l GNU/Linux and my /var/log/syslog gets flooded by messages like Jan 11 10:21:09 BeagleBoard-xM ...
0
votes
0answers
352 views

crontab doesnt upload file via ftp script

I Write script that make a zip file with /var/www Directory And mysqldump db And upload it via ftp And change mode to executable file And put It in cron tab but file doesn't upload !!! #!/bin/bash ...
0
votes
1answer
430 views

How can I get mysqldump to use the credentials from mysql_config_editor in a crontab-executed script?

I am setting up a daily backup of a MySQL 5.6.14 database using mysqldump on an Ubuntu 12.04 Precise server. I created the credentials file in the root home directory (.mylogin.cnf) according to the ...
0
votes
1answer
65 views

Crontab script entry not working

beginner here. I have a script called updateTf2.sh It's contents #!/bin/bash /etc/init.d/srcds stop ./steamcmd/sh +login anonymous +force_install_dir ./tf2 +app_update 232250 +quit ...
0
votes
3answers
184 views

Can't get crontab to repeat command every five minutes

I'm trying to make crontab run a sh script every 5 minutes. This is my root (sudo crontab -e) crontab setup: */5 * * * * /etc/test.sh and this is the script: #!/bin/bash echo "time:$(date)" ...
0
votes
1answer
172 views

Running Key Remap Script at Startup

I'm trying to re-map my left Alt key to the Alt Gr and Alt Gr to Left Alt. So far I've been able to do it in terminal, but it never runs it on start up. I've read multiple AskUbuntu questions, but ...
0
votes
0answers
247 views

cron job exetue, but receive error + 500 internal server error

I created a cron job on my apache server's cPanel, every 5 minute push the script, with this command: lynx -source http://mydomain.com/...c_html/xxxx.php and that script does not execute.. i receive ...
0
votes
0answers
60 views

Logrotate throws a SQUID4 error

I am using squid3, on my Ubuntu 12.10 server, for some months now. I never had problems like that until 4 days ago. Since then I get this mail every day: >Topic: Cron: test -x /usr/sbin/anacron || ...
0
votes
1answer
99 views

crontab entry to reboot than email

I got my weekly crontab reboot entry to work using /sbin/shutdown -r but now I want it to email me when the reboot happens. Ideally I would like the email to happen after it rebooted so I know the ...
0
votes
0answers
60 views

Folder Action for Ubuntu [duplicate]

I have a question concerning Ubuntu folder action , I need a script to notify me when a file is add to a folder or the folder changes , is there any possibility for that. I found some articles ...
0
votes
1answer
58 views

Cron Script Length

I have a backup script, a script that cyncs file with other files on my computer, and a script that uploads files to my website with ncftp. I used cron to load .sh files, and my shorter scripts work, ...
1
vote
0answers
80 views

Using a NAS as a collective dump, with symlinks for whoever uploaded each file

I have a local machine that was sitting around & doing very little, so I decided to turn it into a NAS (Network Attached Storage) machine, with a 40GB disk for Ubuntu (13.10), a 160GB disk that's ...
0
votes
2answers
356 views

how do I use upstart, instead of cron, to start a single instance of a job which should always respawn?

How do I script the following bitcoin/dogecoin/etc cpuminer command: /home/digger/cpuminer/minerd -o stratum+tcp://doge.pool.webxass.de:3333 -O <user>.<worker>:<worker_password> ...
0
votes
2answers
2k views

cron error: bad username

I've basically re-written the terminal output instead of appending a series of edits to this question: root@doge:/etc/cron.d# root@doge:/etc/cron.d# tail /var/log/syslog Dec 21 11:35:01 doge ...
0
votes
1answer
177 views

task scheduler in system settings does not appear

i install KDE's Task Scheduler to be able to access to crontab via GUI . After install , i try to open this soft , however , i cannot find where it is. I follow this DEMO on Youtube , and i note ...
0
votes
1answer
99 views

Need To Rotate Logs From Virtual Hosts on Ubuntu VPS

I have a 1gb VPS running ubuntu that I have installed Apache, Mysql and PHP. I have 3 sites all in my home directory that are using name based virtual hosting. I have created three separate files ...
0
votes
1answer
442 views

Rtcwake based script not working as cronjob

I'm trying to use the following wake script, which I found here, to put my computer to sleep at night and wake it in the morning. The script uses rtcwake: #!/bin/bash # Auto suspend and wake-up ...
1
vote
1answer
466 views

Mysterious Ubuntu restart (with logs)

My Ubuntu 13.10 was running a simulation that should last for days, but it for some reason rebooted automatically. The log said: Dec 17 10:24:26 phz225 cron[1078]: (CRON) INFO (Running @reboot jobs) ...
0
votes
2answers
2k views

How to add the logs to a crontab with time stamp

In crontab, I scheduled a daily backup script. Now when the cron executes the script the status are logged to a log file as shown below. 0 0 * * * /home/backup.sh > ...
0
votes
3answers
1k views

How to do svn update without password on crontab

I'm new to svn and ssh. I'm trying to do svn update of 5 repositories in my local system every 3 hours on crontab. So, to achieve this I have setup ssh passwordless login using the below steps: 1. ...
2
votes
1answer
251 views

What happens to cron jobs when the system is down?

As the title suggests: What happens to con jobs scheduled for a time when the system is down for any reasons as server maintenance or whatever? If it is simply not executed: Is there a way to ...
-1
votes
0answers
271 views

Running a script with cron

When a script is run manually, it works with no errors. The script is to add a user. However when run in cron, I get emails saying: sudo: no tty present and no askpass program specified Sorry, try ...
0
votes
2answers
477 views

In a cronjob copy files and change their names to unique values

I want to make a cronjob that makes a copy of every file in /var/log, and puts it in /etc/bak. That i do by making an sh file saying cp /var/log/*.* /etc/bak I would like these files not to be ...
0
votes
1answer
57 views

Restart service minutes after startup

I have a situation where I'm looking to run a service restart a couple minutes after startup. The particulars as to why are as follows, but the essense of my question is basically captured in in that ...
0
votes
1answer
48 views

crontab formats

I want to run few crontabs at startup and also at regular intervals. I have used the below format - # M H Dom Mon Dow 0 7-21/2 * * * //this will run daily from morning 7:00 to 21:00 clock with ...
0
votes
1answer
618 views

Cron running job multiple times

Hello I have a cron job that I have setup, everything was working just fine until a couple of minutes ago when my cron job scheduled to only run every five hours started to run several processes every ...
0
votes
1answer
258 views

Using rsync to mirror folders on NAS

I have an old netbook that I use as a torrent server running utorrent on ubuntu and accessing with the webUI, at the moment I add links through the UI and then manually copy the files over to my NAS. ...
0
votes
2answers
1k views

How to install changes to /etc/crontab

If I want to add lines to my system's /etc/crontab, what do I have to do to get them to take effect? Background: I'm trying to set up a machine with Ubuntu 13.04 so that it automatically ...
0
votes
1answer
961 views

Running a script everyday using a cronjob

I need the exact code that I would use because I'm not able to figure it out. I use crontab -e to set up a cron job but when I save it, it never works. I'm also just trying to run a file called ...
0
votes
2answers
1k views

Crontab and sSMTP

My server is Ubuntu 12.04.3 Cron jobs are working fine. I can send emails through command line, either using mail, ssmtp or sendmail. I have set the correct email address on top of the crontab -e ...
0
votes
1answer
119 views

How to execute a script with Cron

I would like to schedule a simple script to execute when the machine reboots. I have other schedule other commands in crontab using @reboot without any problems, but I can't seem to get my script to ...
1
vote
3answers
2k views

(Xubuntu) How to set the wallpaper using the command line?

I've done a lot of googling but haven't been able to find a solution to my problem. I am a teacher and I'm using Xubuntu on some student computers. I have everything locked down pretty good, but I ...
3
votes
1answer
147 views

Unable to start Ubuntu. Unknown Job

I'm new to Ubuntu. It asked me to reboot because of updates. Now it doesn't start at all. I've managed to get to GRUB. I went to previous versions, and selected the only one available ...
1
vote
1answer
5k views

Crontab Shut down command didn't work

I wanted Crontab shut down the system daily but it didn't do so, did I misspelled something? This is my Crontab file: /etc/crontab: system-wide crontab Unlike any other crontab you don't have to ...
1
vote
1answer
277 views

Cron job creating empty files in root

My cron job, command looks similar to this: wget -q http://whatever-url/ It is running correctly (every minute). Problem is that it is creating empty php files at my root for every minute it runs. ...
0
votes
3answers
80 views

Cronjob for specific hours

I need a cronjob with criteria to power on/off a TV on the basis: Mon-Fri, power on the screen at 07.00 and power off the screen 17.00. Friday after 17.00 to Monday morning to be powered off. I'm ...
3
votes
1answer
1k views

How to create a script to check for internet connection?

I'm new to programming in linux. I started bitcoin mining using linux mint xfce 15. I'm really good following directions, just don't know how to start. I need to create a script that can run every 15 ...
1
vote
0answers
123 views

Why won't cron run my sh script?

Used gnome-schedule to create a script to set my headset as the fallback audio device because it keeps unsetting it when the headset gets disconnected or pc goes into sleep mode. Anyway, crontab is ...
0
votes
1answer
47 views

problem with crontab entry with time tag

Does the following entry in a crontab have any problem. It's not giving output with time tag.. SHELL=/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ferret/bin ...
1
vote
0answers
569 views

Ubuntu 12.04: Crontab stopped running/Curl and cron blocking?

I have created a number of PHP daemons in the past and my general procedure is this: Run a cron job every minute to start up a new instance of the daemon Create a log file Check to see if enough ...
2
votes
1answer
468 views

Please install an MTA on this system if you want to use sendmail!

I get this message in /var/log/apache2/error.log everytime a cronjob on my desktop wgets a php page that tries to send an email. How can I install a dummy so this message is gone? I already have ...
0
votes
2answers
554 views

Cron Job Not running after proper setup

So I created a cron job as shown below: GNU nano 2.2.6 File: /tmp/crontab.uNoEXy/crontab # Edit this file to introduce tasks to be run by cron. # # Each task to run has to be ...
3
votes
2answers
491 views

Crontab commands and backup

I have the following crontab running on my server: 0 23 * * * /etc/webmin/postgresql/backup.pl --all @daily /etc/webmin/fsdump/backup.pl 155931323799484 30 20 * * 0 /etc/webmin/fsdump/backup.pl ...
1
vote
1answer
648 views

Cron won't execute if am not logged in

I have a cron that makes a backup of MySql, if I execute on shell it works pretty well even if I'm logged when cron supposed to execute works fine, but if I'm not logged just won't execute, I don't ...
0
votes
1answer
1k views

Cron is running but not providing output data

I'm trying to make my Amazon EC2 instances stop and start by a crontab. EC2 Api tools is succesfully installed. Manually it works. The cron (which I put in with the command crontab -e): 10 * * * * ...
2
votes
0answers
60 views

Can I set up a cron job on Ubuntu Phone

I've been looking around, and can't find if Ubuntu Touch can run cron. So my question is: Can it? Also does it have a standard set of bash utils installed?
0
votes
1answer
920 views

Cron not running scripts, no errors in /var/log/syslog

I have a script that creates a file in cron.d and puts some jobs in it. Cron seems to not execute these jobs at all, since the program it runs is set to log all executions. The file inside cron.d ...
0
votes
1answer
30 views

A bit of help with cron script please

I would like to set a cron on an ubuntu server to download a file to a specific location. How would I go about this? For example once a day I would like my ubuntu server to look for a file on a ...
2
votes
3answers
4k views

Why my weekly anacron job is not executed?

I'd like to use anacron for a weekly job on Ubuntu 13.04. Here's my /etc/crontab: # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to ...