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
9 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 ...
0
votes
1answer
11 views

Launch a .desktop file from boot on Ubuntu 14.04

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
16 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
24 views

Reading Cronjob Output

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
1answer
44 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
53 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
44 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
14 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
27 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
41 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=redacted@yahoo.com.au above the jobs, but it doesn't work. I know I need to use something like Postfix or Sendmail but for ...
0
votes
3answers
69 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
24 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
9 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
172 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
26 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
17 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 ...
-1
votes
0answers
11 views

Byobu: Run process in an existing window

I have Ubuntu 14.04 with 3 byobu's windows (byobu list-windows): 0: # (1 panes) [143x38] [layout cafe,143x38,0,0,1] @1 1: title2-* (1 panes) [160x45] [layout c005,160x45,0,0,8] @8 (attive) 3: ...
0
votes
1answer
54 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
30 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
22 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: root@tld.com ...
3
votes
1answer
110 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 ...
0
votes
0answers
34 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
107 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
46 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=crantisz@gmail.com */2 * * * * wget -o /home/user/out.html ...
-1
votes
0answers
36 views

Cron jobs not working

I have some cron jobs configured for my rails application. The cron jobs are entered in the syslog but nothing seems to happen. This the output for crontab -l # Begin Whenever generated tasks for: ...
1
vote
1answer
87 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
68 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
33 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
38 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
73 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
97 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
51 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
1answer
71 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
35 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
74 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
25 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
389 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
64 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 ...
1
vote
1answer
114 views

Who runs scripts inside /etc/cron.hourly if anacron is enabled?

I've read that if anacron is enabled cron doesn't run the scripts inside cron.weekly/hourly/daily/hourly, as not to run them twice. So anacron takes responsability on that folders. However anacron ...
0
votes
0answers
119 views

unattended-upgrades error: “/etc/cron.daily/apt: DB Update failed, database locked”

Ubuntu 14.04.1 LTS Since installing unattended-upgrades, the following error message is received daily: From root@xxxxx Thu Aug 28 06:36:06 2014 X-Original-To: root From: root@xxxxx (Cron Daemon) ...
0
votes
2answers
45 views

Crontab command does not function properly

I have the following crontab entry to automate copying of my files to separate W/S in the network. However, it does not copy the files but produce the log file. here is the file contents #! ...
4
votes
2answers
292 views

How to start a Firefox from cron?

I need to run a Java applet from a Firefox. The problem is, I need to run this Firefox from a cron. If I run from the command line and its work fine, but when put the command in the cron it failed: ...
-1
votes
1answer
234 views

How To Run A Shell Script Again And Again Having X Interval Of Time In Root? [duplicate]

I have a shell script in my Ubuntu Server 14.04 LTS at ./ShellScript.sh. I setup /etc/rc.local to run the shell script after boot but before login using below code. To run run it boot write this ...
0
votes
1answer
72 views

Unable to execute expect script via cron even with the permissions set to 777

I created an expect script that won't seem to run when called by cron. I included the full path in cron when calling it as follows. * * * * * /usr/local/sbin/checkForRemoteTasks ...
0
votes
1answer
54 views

Tell me where is mistake in anacron task?

I have tried to make this task for abacron: dm@dm-system:~$ cat /etc/anacrontab # /etc/anacrontab: configuration file for anacron # See anacron(8) and anacrontab(5) for details. SHELL=/bin/sh ...
0
votes
1answer
40 views

Scheduled tasks won't run simple command

The command below works fine in terminal but won't run using the gnome scheduled tasks. pacmd set-sink-volume 0 42768
1
vote
1answer
16 views

Is it possible to a crontab file containing 1k+ lines of schedules?

I'm planning to create scheduled tasks and I want linux to handle those tasks using crontab. Note: some tasks have different schedules and some are the same [crontab file (schedule.cron)] * * * * * ...
0
votes
1answer
40 views

Chkrootkit not producing a log file

This is the line from my crontab However, the log never gets sent to me..and when I check the log it is empty. I have tried Chkrootkit from the terminal and it runs OK. What am I missing? 30 09 * * ...
3
votes
1answer
125 views

Cron job not working properly on start up

Thanks for reading this. I have created a bash script to backup my databases. The script will create a directory for the day then create a backup file for each database within that directory. It ...
1
vote
2answers
77 views

printf, redirection, crontab

I'm having trouble redirecting C printf statements to a file with a program running as root. I have a program with several informational printf statements and other libraries which print errors via ...