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)

5
votes
0answers
64 views

Ubuntu 14.04 - crontab @reboot hang my PC

Trying to resolving the bug for KWORKERS HIGH CPU, as suggested in this answer. I put in my crontab the row: @reboot echo "disable" > /sys/firmware/acpi/interrupts/gpe06 After the reboot, the ...
3
votes
0answers
178 views

Which tasks in “Scheduled Tasks” (gnome-schedule) use anacron versus cron?

I am trying to run a command once a day, but my machine is not always on. anacron says it's meant for such purposes, but I prefer to use the Gnome Scheduled Tasks GUI program. If I schedule a task to ...
2
votes
0answers
48 views

cron.daily gives apt error. “not found”

I recently upgrade to Ubuntu 15.04 and after that I get these strange errors in my cron e-mail. Sadly I didn't remember what version of ubuntu I was upgrading from but I think it was the latest before ...
2
votes
0answers
25 views

Crontab not running 24 hours

I've the following job in /etc/crontab: @hourly root /usr/bin/script Here is the script: #!/bin/bash killall tcpdump date=$(date +%G%m%d-%k%M) tcpdump -n port 5060 -w ...
2
votes
0answers
141 views

How to make speaking clock ( via cron and festival tts) work while playing music

I switched to linux since last 11 months,I am on ubuntu 15.04, I have learned to use cron for various tasks. I use Cron to announce time via festival tts(using mbrolla voice) hourly. This is the ...
2
votes
0answers
130 views

No crontab for user, yet cron jobs are running

I have no apparent crontab: $ contab -l no crontab for gauthier Yet, something seems to be running as my user: $ tail /var/log/syslog ... Apr 13 16:25:01 sobel CRON[22043]: (gauthier) CMD (rsync ...
2
votes
0answers
156 views

Tiger: `rtm` is listening on socket XXXX

On my Ubuntu serve 12.04 LTS, Tiger is reporting a lot of stuffs like this: OLD: --WARN-- [lin002i] The process `rtm' is listening on socket 60404 (UDP) on every interface. NEW: --WARN-- [lin002i] ...
2
votes
0answers
160 views

Need to setup email notification when system starts and shutdown

I would like to have the system send me a email notification everrytime the system starts or shuts down. I am currently running Ubuntu 12.10 I found this tutorial but I couldn't make it to work.
2
votes
0answers
824 views

Why doesn't duply work when set as a cron job?

I have a problem with a cron job which starts but doesn't complete. Running the command manually works fine. I already read the page about cron issues and solutions here on AskUbuntu, tried the ...
1
vote
0answers
37 views

Cron not working but manually run in terminal works

I placed a command in a script file called app.sh that simply execute an application. sh app.sh When I run it with terminal directly works fine!! but when put it under cron does not work..I tired ...
1
vote
0answers
27 views

Cron job doesn't execute php file and normal file

I have two files, that needs to be executed every evening. PHP file contains the latest records from database, and creates a source file in same directory. And a normal file, even doesnt execute. I ...
1
vote
0answers
54 views

How to check if a cron job is running or not through php script?

Back to my question How to check if a cron job is running or not?, the answer there is valid which stated to redirect output to a file and test. 15 * * * * /usr/bin/php ...
1
vote
0answers
29 views

Accidentally enter “crontab” without -e

Now my root crontab is entirely blank. I enter some crone tasks into this blank crontab(I typed crontab -e again). Even though I see cron is running(pgrep cron returns a number), no cron job is ...
1
vote
0answers
28 views

How to interpret this code?

I setup a cronjob send me notification using notify-send. I tried several methods from different several site and then finally below code works. 55 * * * * eval "export $(egrep -z ...
1
vote
0answers
11 views

How to track the Internet connectivity of two PCs simultaneously using a script?

I have two PCs and I want to monitor the Internet connectivity in both of them and make it available in a page (not local, and something like example.com/statuses) as to whether they're currently ...
1
vote
0answers
27 views

Log rotate daily time for specific application

I know that similar question has been already asked, but there was something I am missing: Is there any option to specify the hour of rotating the logs, but only for one application ? I know that ...
1
vote
0answers
31 views

Screen in crontab

I'm trying to run 9 screens windows by crontab, and then, run some codes (basically the same for all of them), but they don't work. The code runs all of 9 screens, but run code only on the first. Aah, ...
1
vote
0answers
28 views

First-time backup landed in the wrong place

I used Backups with the following settings: Folders to save: Home(jeg) [ON] Folders to ignore: Trash, ~/Downloads [ON] Storage location: 799 GB Volume [ON] Folder: LinuxBackupDirectory [ON] ...
1
vote
0answers
49 views

Bleachbit cron problems

I've been trying to get gnome-schedule to automate bleachbit but the crons never work. So after trying a lot different things I decided to just try setting crons the normal way. I opened terminal and ...
1
vote
0answers
46 views

Turn thinkpad screen off and back on automatically via cron

I setup my thinkpad a while back with ubuntu 10.10 to work as a digital picture frame and each night turn off the screen with a cron cron command, then in the morning another cron command turns it ...
1
vote
0answers
48 views

Why ps produce different output when it is started from a cron job?

When I run ps -f -u $USER ($USER is ubuntu) this is the output I get. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND ubuntu 23517 0.0 0.1 22244 4856 pts/5 Ss+ ...
1
vote
0answers
29 views

cron job to run google-musicmanager and have its indicator showing up in the menu bar

For some reasons, I need to periodically run a script with cron in order to start Google Music Manager (and to perform some music folders/files and config management stuff, which poses no problem). ...
1
vote
0answers
113 views

incron tab won't fire

I'm trying to get incrontab running, but it won't work. This is the error I get: access denied on ~/propt/apo/feeds - events will be discarded silently and this is the line in incrontab I want to ...
1
vote
0answers
110 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 ...
1
vote
0answers
83 views

syslog time is not matching cron string setup

I am running many cronjobs in my server. When I was checking the syslog file to see the cron timing, it's completely not matching. Can someone help me to understand. syslog May 23 00:00:01 xxxxxx ...
1
vote
0answers
314 views

Allow user to run programs as root without password. Would it be the correct solution to my problem?

I have a server which I need to be running certain programs permanently; I'm having problems with two of them and I'm not sure if the solution I've found would be the correct one, so I ask for opinion ...
1
vote
0answers
33 views

Any reason why Ubuntu's man page on crontab(5) is less informative?

Why is the man page for crontab(5) at manpages.ubuntu.com less informative than corresponding man page at linux.die.net? Compare The "sixth" field (the rest of the line) specifies the command to ...
1
vote
0answers
59 views

Make CronTab not asking for id_rsa keyword when running in terminal

I like to do some git pull inside a script and see see output of it. So I made up this cronjob to test: DISPLAY=:0 * * * * * mike /usr/bin/gnome-terminal -x zsh -c "/var/www/up.sh; zsh" ...
1
vote
0answers
108 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 ...
1
vote
0answers
167 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 ...
1
vote
0answers
78 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, ...
1
vote
0answers
95 views

Why are alerts still coming if a job is commented out in cron?

In cron entry I have disabled the ignite recovery tape backup. But still we are getting alerts as: The action /opt/osit/omniback/bin/check_make_recovery.pl failed Crontab entry : # Ignite ...
1
vote
0answers
230 views

How to trigger anacron start if USB drive connected

There is a script in /usr/lib/pm-utils/power.d/anacron which restarts anacron if leptops are connected to power. Is it possible to have a similar script restart anacron if (a certain) USB-drive is ...
0
votes
0answers
29 views

Cron job not finishing

I have a custom Python script set to run with Cron on a 3-day per week basis. The job runs great, up until a certain point. The job is supposed to ZIP certain directories on my media server, and place ...
0
votes
0answers
14 views

failed to open fifo for logging: No such file or directory

I have Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-43-generic x86_64) Installed nginx, php5-fpm, work web site. In syslog more error fifo, what is it? Aug 28 12:17:01 ubuntu-server CRON[30921]: (root) CMD ( ...
0
votes
0answers
32 views

logrotate broken after security breech

I downloaded a PDF which evidently had Linux malware, which executed when I ran the PDF through firefox, or atril, Im not sure which. I figured it out shortly after running clamav, and I believe ...
0
votes
0answers
47 views

how to auto login magento in terminal?

Currently I am trying to get customers data from magento. It was working fine, when run in netbenas (Shift+f6). (I make the magento admin as auto login using the following link). admin auto login: ...
0
votes
0answers
50 views

Run apt-get dist-upgrade from cronjob

I'm using a 64 bit Ubuntu 14.04 headless server & I thought I had configured cronjob to automatically download updates by editing the /etc/crontab file & adding this. 0 23 * * 3 root ...
0
votes
0answers
23 views

Is it safe to delete ntpdate from /etc/cron.daily?

As I understand ntpd effectively replaces ntpdate. I had an admin mail that showed: /etc/cron.daily/ntpdate: run-parts: failed to exec /etc/cron.daily/ntpdate: Exec format error run-parts: ...
0
votes
0answers
45 views

My Cron Job Runs when it Wants to

I am new to this group, so be gentle please. I won't say that I am an expert, but I will say I am experienced with Ubuntu. Recently I wrote a bash script that checks my WAN IP address and emails it ...
0
votes
0answers
15 views

Cron Job Not Executing Completely

While executing this shell script as a cron job it returns "Checking for ctl file"and does not execute any of the lines below. Shell Script cd /Input; ctl="/Input" echo "Checking for ctl file"; ...
0
votes
0answers
28 views

Any problem launching script with infinite loop using cron?

If I run a shell script containing an infinite loop using cron @reboot, will that hang up the cron daemon or does cron keep moving and not wait for the job to terminate?
0
votes
0answers
18 views

Xchat and cronjob?

I've submitted a thread in Ubuntu forums. Where I talked about if there's a way to automatically send a message after a certain amount of time. One guy replied and said to me that he has wrote an ...
0
votes
0answers
26 views

Logrotate errors on weekends

Update: After a lot of trial and error, I figured out that my logrotate for the giant backup was causing all the errors on the other logrotates. I had tried to only get 2 rotations so it'd look like: ...
0
votes
0answers
66 views

Cron jobs not running while OS is locked

I have a cron job that runs a simple bash script to swap out the current wallpaper with a random image from my wallpapers folder every minute. This works fantastically for me. However, whenever I lock ...
0
votes
0answers
65 views

BQ E4.5 r22: setup an alarm from a script run by user phablet or its cron job

I run in my BQ E4.5 Ubuntu phone a cron job which monitors every 5 minute the battery level. I'd like to be able to create an alarm let's say if battery is below 10% to get the users attention of the ...
0
votes
0answers
29 views

cron script issue when sending mail to multiple recipients

I have a script to generate reports every morning and mail it out to multiple teams. Since I want to make the script generic (there are many reports) I added the following in each script- ### Mailing ...
0
votes
0answers
19 views

Cron <root@pfsense> /usr/local/pkg/swapstate_check.php

Why I am getting this error in pfsense: /usr/local/pkg/swapstate_check.php:not found. Please can someone help
0
votes
0answers
35 views

R/Shiny WebApp logs, running in shell (Ubuntu crontab)

I'm running, using crontab, an R/Shiny WebApp. The crontab expression looks like this: @reboot R -e 'shiny::runApp(...)' | tee /var/log/shiny-server.log I've also tried @reboot R -e ...
0
votes
0answers
106 views

Why does rsync run in crontab not work the same as from the command line?

I have rsync scheduled to run in my root crontab with the archive option: 0 22 * * 6 /usr/bin/rsync -avv --delete --log-file=/home/brian/rsync.log /home /media/wdsentinel/home_backup When I add ...