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
2answers
41 views

crontab doesn't seem to work and makes different schedule in cron.d!

sudo crontab -e lets me edit the crontab, and I put in this: # Hourly backup 0 * * * * rsnapshot hourly # Daily backup 0 2 * * * rsnapshot daily # Weekly backup 0 4 * * 6 rsnapshot weekly And it ...
1
vote
1answer
64 views

Can't run Sikulix 1.1.0 on Ubuntu 15.10 with crontab

I try to run a Sikulix script but nothing happens. crontab: SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/home/absolute MAILTO="" # m h dom mon dow user ...
0
votes
1answer
28 views

Cron job. Runs at minutes interval but otherwise when set at another time

During the test of my script. The cronjob should run a script through the browser every 2 minutes. So I had the following cron: */2 * * * * wget -O http://192.10.10.1/mypage/myscript.php The cron ...
0
votes
3answers
25 views

Cronjobs not showing up using crontab -u <user> -l

I added some jobs directly to the /etc/crontab file. They are running fine. However, I cannot see them if I use the ‍‍‍‍‍‍‍‍crontab‍‍ command crontab -u <user> -l Do I have to reindex ...
2
votes
1answer
41 views

How do I set up a cron job on Snappy?

If I run sudo crontab -e I can edit the crontab, but it's read-only so nothing gets saved.
0
votes
0answers
45 views

Autostart .jar file with screen

How can I autostart a .jar file in screen at boot? I already have some other programs that start at boot, but the .jar file doesn't work for me.
1
vote
0answers
39 views

Bash script to display XKCD comic - crontab not executing

I wrote a bash script to display the current xkcd comic in my web browser (using the RXKCD package in R). I want to schedule this so that the current xkcd comic displays every morning at 8am when I ...
0
votes
1answer
50 views

Crontab entry to update my xmltv epg - xlm file - Ubuntu 14.04 LTS Server

I have made a small script like this:- #!/bin/sh tv_grab_uk_rt -output /var/www/xml/tv.xml and called it xml.sh. I have saved this script at /usr/bin/xmltvscript/xml.sh I can run this fine with ...
-3
votes
1answer
37 views

DDNS workaround

I just configured a ts3-server on an Ubuntu-machine and want it to be available all the time on the internet, but i don't have a static IP and my router doesn't support DDNS. Is it somehow possible to ...
0
votes
0answers
24 views

Edit crontab using editor set by update-alternatives instead of select-editor option

man crontab makes me think it is possible: The -e option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit from the ...
0
votes
1answer
32 views

Scheduled backup of home server

I'm using Ubuntu 14.04.4 LTS as a home NAS server. I already made some scheduled rsync script to backup my photos, documents etc to an external drive. I want to do the same with the entire system, ...
0
votes
0answers
18 views

Transfer Truncated error with debmirror

I am building my first linux virtual test lab (Ubuntu 14.04.4) and I am trying to create a partial local mirror using the debmirror tool and these instructions. The transfer is working, but keeps ...
1
vote
2answers
62 views

How to execute PHP code in Linux every 500 milliseconds?

I have an http server on Linux. I have some PHP code that stores variables into the cache using memcache and I would like to execute this code every 500 milliseconds whenever the server is running, ...
1
vote
1answer
44 views

Crontab syntax; Multiple commands

I would like to get the following chain of commands as a cronjob: * * * * * source activate myenv3 && cd ~/foo/bar && python sssb.py It works in console, but I dont get any output ...
1
vote
1answer
96 views

'source' builtin in bash not recognized in cron environment

A user crontab entry that reads: 0 */4 * * * $HOME/postscript/fprogcache-sync works fine. Wanting to add a few environment variables to the cron-job context, I then tried 0 */4 * * * source ...
0
votes
1answer
17 views

Cronjob is not running Properly

I have written a cron job as follow: 45 08/3 * * * bin/run.sh job it is getting started at 8:45 but Once it finished. Its not starting again .
0
votes
0answers
11 views

cron running init.d reload and getting exit code of 2 [duplicate]

I am having cron run a shell script which includes this line... /etc/init.d/nginx reload but it is giving me an exit code of 2...What can I do to reload nginx from cron successfully?
1
vote
1answer
21 views

Cron keeps running each 1 or 2 minutes

I have noticed that my cron script keeps running each 1 or 2 minutes after execution for almost 1 hour, since I have a lot of cron jobs, sometimes I could not access to my website, the browser keeps ...
0
votes
0answers
29 views

SSD trim support… Do i have to do anything? [duplicate]

First i must state that i am totally new in Linux world. I totally ditched the operating system that i used for about 20 years now. So here i am with my first question... My laptop has an SSD inside ...
1
vote
0answers
54 views

crontab not run aria2c & script

I can 't run this script in sudo crontab -e #! /bin/bash sudo -u jali aria2c -c -x16 -s16 -j2 -k 1M -i /home/jali/Desktop/dl-list.txt -d /home/jali/Videos -l dllog --log-level=notice ( for i in ...
0
votes
1answer
16 views

Torgaurd will not start with Crontab at reboot [duplicate]

I'm currently using the guide posted on Torguard here. Everything work perfectly up until setting up the cronjob to start at reboot. This is the steps I've taken: crontab -e and then adding this ...
1
vote
1answer
38 views

Edit crontab with an editor other than the default

I would like to edit crontab with vi once. My default editor is nano, and I want to keep it that way. I only want to edit with vi one time. I don't want to change the default to vi then back to ...
-1
votes
1answer
35 views

Permission Denied in Cron Job

Super newb here, I am running an Ubuntu Server as a home NAS and everything is going well, i've created a bash script to download an XML TV guide from the internet for my PVR back-end, then move and ...
3
votes
0answers
53 views

Cron using a command that asks for password

I was able to fix this by using the encfs -S option, this pulls the password from a file instead of prompting for the password every time the script is run. This is not very secure as the password is ...
1
vote
2answers
56 views

Why is my crontab command not working?

I don't know what the problem is. I'm very confused. I'm using that command: crontab -e Crontab content: # Edit this file to introduce tasks to be run by cron. # # Each task to run has to be ...
0
votes
1answer
18 views

Is crontab's @reboot entry triggered after X has started?

Using crontab -e I have added an entry to my cron tab file @reboot /home/rene/misc/change-layout.sh change-layout.sh contains some xmodmap -e statements to change to keyboard layout. When I ...
1
vote
1answer
42 views

Hourly and daily crons are not running

I've noticed that hourly and daily crons are not running, I moved them to crontab, and everything is fine: #!/bin/bash now=$(date) echo 'It is '$now The command line: # run-parts --test ...
0
votes
0answers
51 views

Why is my crontab not running my bash script?

I have a bash script which I want to run every 5 minutes with cron, but for some kind of reason it's not running? I've followed some guides, but no luck this is my crontab -e: SHELL=/bin/bash 0,5 * ...
3
votes
2answers
57 views

How to programmatically find the current value of DISPLAY when DISPLAY is unset? (for use in crontab)

I have a script that runs via cron to change the desktop wallpaper. I can get it to work by exporting the DISPLAY variable. But the issue I am concerned about it that the script should work on all ...
3
votes
1answer
51 views

Cronjob under Ubuntu runs slow

I configured a cronjob (running a bash script) with crontab -e which locally copies some data from one hard drive to another (rsync) and after that compares them (diff). I executed the script ...
1
vote
0answers
96 views

Start Ampps, with root permissions, once desktop loads

Been hacking my way through getting Ampps to work on Ubuntu. Ampps will be used to use host a local Web app for my families business, and I need Ampps to start when Ubuntu starts, always. I figure I ...
0
votes
0answers
15 views

binary file in /var/spool/cron/crontabs?

I have a backup disk image of an old computer (it ran Ubuntu 12 LTS IIRC) that experienced a motherboard crash. Recently I wanted to retrieve a particular crontab command I had running on that ...
3
votes
1answer
122 views

Background not changing using gsettings from cron

I'm trying to change my wallpaper to a random image using Indrajith Indraprastham's suggested script here: How to change desktop background from command line in Unity? When I run the script from a ...
0
votes
1answer
15 views

What Permissions Are Used For Scripts On Startup?

If I create a rc.local job to execute a script @reboot. I am wondering at what point in the startup the script is executed, and what permission level the the job executes my script at? I have a ...
2
votes
2answers
26 views

How many times will a cron job run when given asterisk (*) on all positions?

If we define a cron job with * * * * * /some/task/to/perform, how many times will the job be executed in 60 seconds?
0
votes
0answers
30 views

crontab MAILTO does not use encryption

I have a Postfix + Dovecot server running normally. Would I like to crontab send error logs to my personal email. I created a root@mydomain.com email to the crontab, emails are sent normally, but do ...
1
vote
1answer
29 views

Consecutive commands in crontab

I'm running a software which needs specific rights for different subfolders. Therefore I'm using crontab to update those rights permanently. On one server I'm using a perl-script which groups all the ...
1
vote
1answer
21 views

MMV doesn't execute in bash script (only if run by CRON)

this is my script "backup.sh": #!/bin/bash date=$(date +"%m-%d-%Y_%r") mmv -r "uploads/temp/*" "#1\ '$date'" mv /ftphome/uploads/temp/* /ftphome/uploads/arch/ My dir structure is like that: ...
3
votes
0answers
97 views

dconf-WARNING **: failed to commit changes to dconf: The given address is empty

So I got this script change_wallpaper, based from the answer from this: Automatically change Ubuntu wallpaper at a certain hour and ran it through cron. # For changing wallpaper at a certain time */1 ...
0
votes
0answers
72 views

copy table from one database server to another server in mysql

I am working on cronjob to transfer data from one server to another and after transfer is completed the first server database table should be empty for that I am using following commands but that ...
0
votes
0answers
27 views

Zombie being made from 'tail -f' cron job that grep's and launches shell script

I realize that a single zombie process like this is nothing to worry about, I just want a more professional outcome (no zombie) from my code. My cron job calling a shell script produces a single ...
0
votes
0answers
39 views

git-dude script won't work as a cron job

So I have been using this witty Git desktop notifier called git-dude, except that I had the idea of daemonizing it, so I tried invoking it through cron in an allotted time frame, which is every 5 ...
1
vote
1answer
52 views

Command to ON/OFF cron job

Is there any command that can switch ON/OFF cron job in Ubuntu? As far I know to open crontab -e and comment out each cron job. Is there any single command to stop all cron job and restart later? ...
0
votes
1answer
49 views

Anacron starts but does not run cron.daily

$ grep anacron /var/log/syslog Feb 20 19:05:11 jesus-Custom-PC anacron[1410]: Anacron 2.3 started on 2016-02-20 Feb 20 19:05:11 jesus-Custom-PC anacron[1410]: Normal exit (0 jobs run) Feb 20 19:05:13 ...
1
vote
1answer
68 views

Cron job every day at Specific Minute of Specific Hour

I am trying to set a cron job in the crontab which would execute my command every day at specific minute of specific hour. I am using the Indian timezone in my server. If I set the job like below, ...
3
votes
2answers
367 views

Running command at startup on crontab

I wanted to run a command on our linux after its done rebooting, I saw that it can be done using crontab. I wanted to run this command sudo ifdown eth0 && sudo ifup -v eth0 on the crontab ...
1
vote
1answer
25 views

Everyday Ubuntu system reboots at fixed time

I am using Ubuntu system setup by someone else. It used to restart everyday around 8 am. I checked for cron jobs, but I didn't find any. Can anyone help, why I am getting such behavior ?
1
vote
1answer
11 views

Reversing cron job mail activity

Hiii I want to check the reason behind failure of cron job mail activity without accessing server's maillog ? Is there any other way to check 'why mail wasn't send ?
1
vote
1answer
81 views

Database Data transfer from one server to another server in linux

Hi this is Ravindra and i have one question that i want to copy table data from one database server to another pc database server periodically after 7 or 10 days automatically in linux through cron ...
0
votes
1answer
41 views

Crontab script not running

I have script that will run just fine from the command line by simply using “sudo pdfBackup” however when I added it to sudo crontab –e, it’s not running. The script is in my /bin/ directory called ...