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
0answers
5 views

Root crontab not running

For some reason, my root cron tab does not seem to be running. Trying to reboot device every night at midnight. Should be the following as root: crontab -e Then add: 0 0 * * * /sbin/shutdown -r ...
0
votes
0answers
14 views

Run cron job to execute a script when a particular file is updated

I would like to automate a process which requires running a script to generate some files. To do this I thought that adding a cron job to run this script would be great. But I want cron to run the ...
0
votes
1answer
13 views

Custom cron job filename for a package

I'm willing to create a cron job for a package but when I define it in debian/cron.d it gets installed as /etc/cron.d/package. I'd prefer to be able to change the name of the cron job to be something ...
0
votes
0answers
15 views

Many CRONs processes

My system from couple days have some strange issues. Main thing is that I can't ssh for most of my day. I noticed that is connected with amount of CRON porcesses. In crontab I have about 90 records ...
1
vote
1answer
19 views

This anacron cron job is sending emails to me - how can I redirect the output to null? [duplicate]

$ cat update-notifier-common #!/bin/sh set -e [ -x /usr/lib/update-notifier/package-data-downloader ] || exit 0 # Try to rerun any package data downloads that failed at package install time. ...
0
votes
1answer
16 views

How to implement in upstart that a service is preventive restarted every x hours?

I have a component --- started with upstart --- with a bug. The bug causes the application to freeze and unfortunately, it does not crush. As a temporary walk-around, I want to force the service to ...
0
votes
0answers
15 views

pmcmd not working with Ubuntu crontab or gnome-schedule

I have scheduled a shellscript which interns calls an informatica workflow with PMCMD command. when the script executed manually, it is starting the workflow properly but when the workflow is ...
0
votes
1answer
34 views

run a script and return system to suspended or running mode

Somehow I cannot find how to do this common task. I want to run a (backup) script daily at certain time regardless whether the system is running or suspended and return to the previous state ...
0
votes
1answer
15 views

Why am I getting this annoying log messages.CRON[17405]: (root) CMD every minute

I have configured rsyslog.conf file to store log messages to mysql but I am getting some annoying log message in my MySql table. which looks like this. Nov 3 14:48:01 username CRON[17405]: (root) ...
0
votes
2answers
27 views

Crontab unable to open google chrome

I have written a chrome extension that performs a task whenever it is available, and for that I would need the chrome browser open at all times. My idea was to have a check say every minute if the ...
-1
votes
0answers
15 views

How to run a java program on boot [duplicate]

I wrote some java programs which run continuously to do some maintenance work. But I need to start them individually by screen java MyProgram I want them to start automatically on boot. I have read ...
0
votes
0answers
26 views

Scheduled Cron Back up from EC2 to S3

I have created a script for scheduling sql back ups and store in Amazon S3. Below is the script that I used for taking backups. DATABASES="testdb" testdb_USER=root testdb_PW=root ...
1
vote
1answer
28 views

CronJob not working as expected

I generated a cronjob line for crontab -e with Crontab Generator: * */2 * * * curl http://www.example.com/cron.php >/dev/null 2>&1 I was expecting that it should run every 2 hours. But in ...
0
votes
1answer
20 views

Cron process sends email, where are these sent emails?

Ubuntu 14.04 I have an email process that sends an email via cron, using sendemail (which I believe is a Perl program that doesn't need an MTA). Where are these sent-emails stored? If they are stored ...
0
votes
0answers
35 views

crontab and running nmcli in a script

I am trying to come up with some way of making a persistent VPN connection, so if it drops (as it does from time to time) the connection will be remade. I though using crontab would be the best way to ...
-1
votes
1answer
35 views

Launch a .desktop file from boot

I have a .desktop file on my desktop that launches a html page. I need the .desktop file to run from startup, what would be the best way to do this? I have tried crontab and also the startup ...
0
votes
1answer
21 views

Cron emails no longer going to local 'chuck' account

Ubuntu 14.04 installed as a VM on a machine that sends emails, with attachments, via Perl 5.18.2. That part works because Perl talks directly to the SMTP server. Let's call the machine name ...
1
vote
0answers
27 views

Reading Cronjob Output [duplicate]

I have a task setup to run on my cronjob where I need to read the output. What I need from the output is the starting character (let's say A) and the ending character (let's say Z). A helps me ...
3
votes
2answers
98 views

Performance loss after 30 minutes

This one's baffled me. I have Ubuntu 14.04, 3 days ago (2014-20-10) it started slowing down. I've reproduced it by opening gedit and then closing gedit, when the issue is active it hits roughly 2 ...
1
vote
2answers
117 views

Cannot run bash script from crontab when it works from command line bash

I have a strange problem of being to able to run a bash script from commandline but not from the crontab entry for root. I am running Ubuntu 12.04. * * * * 1-5 root ...
0
votes
1answer
64 views

shutdown 5:30pm every day

for a five thirty pm shutdown, should I change this: 30 02 * * * /sbin/shutdown -h now to: 30 17 * * * /sbin/shutdown -h now see also: Crontab Shut down command didn't work
0
votes
0answers
21 views

Auto Update Even When Laptop Lid Is Closed

I am trying to follow this guide for auto updating Ubuntu. I am using the Advanced Aptitude option. My problem is that I am trying to do it on a laptop and cron doesn't work when the lid is shut. I ...
0
votes
2answers
34 views

How to create a cron job to monitor the status of a port ?

I am trying to create a cron job that would allow me to monitor the status of a particular port and send out notification via email while it changes from listening state to anything else.
1
vote
2answers
80 views

How to make crontab email me with output?

How can I make crontab email me with the output of its jobs? I have MAILTO=[email protected] above the jobs, but it doesn't work. I know I need to use something like Postfix or Sendmail but for ...
0
votes
3answers
95 views

Run rkhunter regularely on a desktop system

I want to get a warning on my desktop when rkhunter finds something odd on my system. I whitelisted some files and dirs that seem ok in /etc/rkhunter.conf so I get no warnings anymore. Now I want to ...
0
votes
1answer
35 views

git push script, only if difference

I've found some nice questions illustrating how one would write a script automating git push/pull with cron here and here, but I want to elaborate on that slightly. I only want to push/pull if there ...
0
votes
0answers
12 views

truecrypt in bash script called with crontab

I have a bash script that uses truecrypt to mount a volumn. The command is the following: RESULT=$(truecrypt $FILE 2>&1); When I execute the script with bash script.sh I receive the ...
2
votes
2answers
183 views

Cron Job Creation

Okay, so I have had a quick look at the answers posted on this question and re-formulated my cron job. So, let me break this down as clear as I am able to: PC/OS | Shell Info I am currently running ...
1
vote
1answer
40 views

Question about CRON trim weekly

I have got samsung SSD and so TRIM is on automatically. However I am bit confusing about how TRIM cron weekly starts. According to cat /etc/crontab it says that CRON weekly will start at 6:47am (odd ...
1
vote
1answer
22 views

How do I change my cron loglevel to 7 from default value 1?

> man cron, tells me that the default log level for cron is 1; i.e. cron "will log the start of all cron jobs." I want to set that to 7, so I checked in all the wrong places, starting with the file ...
0
votes
1answer
72 views

Cron job daily not running

I'm having trouble with setting a cron job to run daily when I enter the script to /etc/cron.daily when I put it there it doesn't run at all like it should be doing. I setup a script so that it can ...
2
votes
0answers
34 views

Running Chrome extension periodically using a cronjob

I have built a chrome extension that performs a set of actions on a random webpage. The extension seems to work fine and I plan to run it on a VPS running Ubuntu with a XFCE desktop environment. Now ...
0
votes
0answers
25 views

Configure cron to include FQDN in email

We have machines named like so: serverA.subdomainA.TLD.co serverA.subdomainB.TLD.co Works fine for us, except when I get an email from cron, the messages looks like: From: [email protected] ...
3
votes
1answer
113 views

How can I start a shutdown with cron,only if no download is in progress?

I would like to shutdown my computer half-past twelve every day and can do that with "echo "30 0 * * * /sbin/shutdown -h now" > myrootcron.sh",but what if I want to cancel that shutdown or leave it ...
1
vote
0answers
48 views

Cron jobs are disabled on clean installation of 14.04

I have a clean installation of Ubuntu 14.04 and in my /etc/cron.daily/ I see *.disabled files: -rwxr-xr-x 1 root root 15481 Apr 10 09:04 apt.disabled -rwxr-xr-x 1 root root 314 Feb 17 2014 ...
3
votes
1answer
153 views

Ubuntu 14.04 and playing songs from cron

I recently upgraded my computer to Ubuntu 14.04. After the upgrade the system no longer plays the few songs I had it play via crontab. The crontab lines look like so: 0 9 * * 1-5 ...
1
vote
1answer
53 views

Problems with MAILTO setting: server doesn't sent cron's e-mail

I have Ubuntu 14.04 with Postfix mail server. Php/apache can send e-mails. But i don't resive any messadge from cron. Here my setup: MAILTO=[email protected] */2 * * * * wget -o /home/user/out.html ...
1
vote
1answer
107 views

Change system volume using crontab & pactl

I am trying to change Ubuntu 14.04 system volume using crontab. I am using following command: pactl set-sink-volume 1 75% Which works fine when I use it in terminal or when I run script which ...
0
votes
1answer
149 views

What is the default timeout value for curl when used as command on terminal?

have searched a lot to find out default timeout value of curl. All suggests how to set timeout limit for curl. But Can anybody please suggest what is the default value of curl command timeout time? If ...
0
votes
1answer
36 views

running a tar command eats all resources

I am running a Rails application on my ubuntu 12.04 server. I have set up a cron job to take backup of all files uploaded to my application every morning at 2 am. It is a lot of files (around 900 mb). ...
0
votes
1answer
52 views

Alternatives to Cron

I'm doing a server running Ubuntu Server 12.04 and Apache. The users have continuous updates in the dinamic pages through a Java script, downloading JSON files through Ajax request to server. All the ...
1
vote
1answer
164 views

Crontab not executing jobs Ubuntu 14.04

I am trying to run bash script as a cron job every 15 minutes. The bash script simple calls a Java program. I made an entry in crontab to run the file every 15 minutes and saved it but it would not ...
1
vote
3answers
120 views

Not able to run sed on bash script

I am working trough some legacy code which does not work, I came across a part that is causing problems. I was hoping some one could help me out and fill me in on what is the exact functionality of ...
1
vote
2answers
62 views

Schedule a large download to resume everyday in a specific time-span of the day?

I want to schedule a large download to occur at night, between 12AM and 5AM. Everyday at 12AM wget should automatically pick up where it left the night before, and at 5AM, it should automatically ...
1
vote
2answers
105 views

can't reattach to screen

I've been having problems with screen (the terminal command). If I type screen -ls it gives me: No Sockets found in /var/run/screen/S-root. For screen -r I get: There is no screen to be ...
0
votes
0answers
36 views

Reg: Cron job is not running

I have set my cron jobs in linux ubuntu. Cron is not running and even already set my mail id to test whether cron is working or not.Its not luck for me. How to fix this issue.
1
vote
0answers
110 views

Crontab not executing script with cURL

I have a cron that's set to run every ten minutes that works fine if I execute the file manually by entering php register.php But, my cron will not execute this file once it includes anything cURL ...
1
vote
0answers
35 views

Cron, xconf-query and Xubuntu 14.04

I have updated my Xubuntu to the 14.04 version. Unfortunately, I am experiencing a problem. I have a script, named earth, updating the wallpaper of my desktop. Here is the code #!/bin/sh nice -n 19 ...
5
votes
3answers
737 views

Why is this rsync + ssh cron job giving me 'Permission denied (publickey)' errors?

I make frequent backups to a local drive which I want to sync daily to a remote server. The target server is configured for SSH key (no password) access only. Since my primary SSH key for that server ...
0
votes
1answer
79 views

Is there a programmable way to tell if the screen is locked with the new Unity interface?

I have lots of stuff in my crontab, including some that talks to my screen. If I'm not there for it to be notifying, I don't really want it to run. Is there a way I can check to see if the computer ...