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)

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 ...
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 ...
3
votes
0answers
288 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 ...
3
votes
0answers
253 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
21 views

Scheduling Cron Job for a Specific Hour Range in a Week

I'm looking to run a cron job for specific hours in a week. The reason I'm doing this is due to the timezone being pegged exactly 7 hours ahead of New York time irrespective of daylight savings (this ...
2
votes
0answers
104 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
55 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
215 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
225 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
205 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
1k 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 ...
2
votes
0answers
263 views

Script not working through Cron - JDK version mismatch between shell and script

I am executing a script through cron using the below command: */10 * * * * cd /nas/app/someFolder/psox; ./RunPSOX.sh >> /tmp/trial.log 2>&1 This is being executed by root user. All ...
1
vote
0answers
25 views

Why might this “reboot on ping fail” script not be working?

I have an unresolved problem with my vps falling off the network. There's no reply and the webhost have no idea, so I thought this bash script should work #!/bin/sh ping -c5 8.8.8.8 if [ $? -eq 0 ]; ...
1
vote
0answers
48 views

Not able to execute a url from python script running via Cron

I have a script web.py which I am trying to run on the aws EC2 Instance using cron. It basically has these line of codes: import webbrowser webbrowser.open('http://xxxxxxxxxxxxxxxxxxxxxxxxxxxx') If ...
1
vote
0answers
20 views

Ubuntu Upgrade not finishing

I am upgrading ubuntu 14.10 to 16 LTS using a DVD and well it has been at the saving installed packages phase for more than 2 hours.What should I do? Here is a screenshot
1
vote
0answers
29 views

Get a list of all scripts and their paths which are run as cron job

I am looking for some script or terminal command to list all the scripts (preferably with their paths) which are run on a periodic basis by cron, cron.daily, anacron. I am not looking for any filter ...
1
vote
0answers
21 views

how do I get the atd daemon log at commands?

On HPUX all at jobs are logged in a cron.log file. Alas I cannot find similar on Ubuntu. I see cron is logged to syslog and I can change rsyslog to log to a cron.log. But my attempts to log at.* ...
1
vote
0answers
37 views

Can't start a job with Cron on Ubuntu startup

I am trying to get a simple Python script running on startup with Cron on Ubuntu 16.04. What I did is opened cron with: sudo crontab -e and added the last line as shown in the screenshot: I even ...
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 ...
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 ...
1
vote
0answers
95 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 ...
1
vote
0answers
61 views

How can I run a custom script on /usr/bin/ via cronjob?

First of all: This is not a duplicated of Cronjobs made via cronjob not working which seems to be fixed by simply giving execution permissions to the script and/or adding the #!/bin/bash at the ...
1
vote
0answers
74 views

Copying backups from remote server to local machine with a cronjob?

I have two remote servers, one running Apache and MySQL, and another Apache and Postgresql. Using these (https://wiki.postgresql.org/wiki/Automated_Backup_on_Linux) scripts as reference, I've created ...
1
vote
0answers
48 views

crontab run sequentially

I have to run crontab in xvfb display mode forever when the system restarts...below is crontab code.... @reboot nohup Xvfb :1 -screen 0 1024x768x24 & export DISPLAY=":1" @reboot /usr/bin/forever ...
1
vote
0answers
55 views

Evernote: script that can incrementally download full db where note = file?

Is there any script to incrementally download my Evernote database in plaintext? I need to have not one big file but many files (with attachments) - I want to use cron for everyday backup to git and ...
1
vote
0answers
70 views

How can simulate mouse clicks in a cron job on a headless machine?

I have a headless machine running Ubuntu 14.04 LTS. I'd like to set up a cron job to daily click some buttons on a web page. I often use X2Go, and I know I could manually open an X session and use ...
1
vote
0answers
48 views

How to use Mutt as the mail transport agent used by crontab?

I am using Mutt to send emails from my server. Using the MAILTO variable to send the result of running crontab tasks is not working as it seems that it expects to find /usr/bin/mail. This is the ...
1
vote
0answers
42 views

restarting custom kiosk service with cronjob

I have a google chrome kiosk set on top of Ubuntu Server 14.04.3. What I want to do is to restart the kiosk every day at midnight. As a test I set a cronjob to restart the kiosk every minute in order ...
1
vote
0answers
162 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
69 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
203 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
72 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
36 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
34 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
55 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
32 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
137 views

Ubuntu shuts down unexpectedly, Every night

I know this sounds weird but unfortunately it's real. I have Ubuntu 14.04 LTS running on Dell Inspiron N5150 Laptop with intel i7 CPU and nvidia GeForce GPU. Every night between 9:30 pm and 11 pm ...
1
vote
0answers
88 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
90 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
79 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
42 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
238 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
196 views

CRON @reboot vncserver?

Is there any reason per-user cronjobs running vncserver @reboot wouldn't run? When I reboot the machine and look into /var/log/syslog, I see the jobs being run, then cron saying (CRON) info (No MTA ...
1
vote
0answers
165 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
107 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
432 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
46 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
65 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
118 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 ...