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
6 views

Ubuntu 15.10 after apt-get upgrade flashing colored dots

Monthly, i run a cron job that apt-get updates/upgrades my Ubuntu 15.10 Desktop system, then reboots. Consistently, the reboot hangs forever with the console screen showing the Ubuntu boot screen with ...
0
votes
0answers
5 views

Jenkins jobs are not running on schedule time

I am using jenkins 1.642 on ubuntu and setup the job with H 2 * * * schedule but jobs are run on Wed 27 Jul 13:09:23 CEST time even I set on night !!! Any one know that, Why getting such behaviour on ...
1
vote
2answers
21 views

Crontab -e command not working properly

First time I ran crontab -e it asked me to choose text editor. However I canceled command. When I run it again this is the output: $ crontab -e no crontab for root - using an empty one 888 How do I ...
0
votes
1answer
40 views

Creating a script for modifying several users crontabs

OK, so I run a seed-box like local machine with Ubuntu 14.04LTS setup with multi-user rtorrent/rutorrent. I installed that through a script that also installed crontab entries for each user so ...
0
votes
1answer
15 views

I can't backup mongo with mongodump and cronjob

* * * * * /usr/bin/mongodump -d mydbname -o /home/ubuntu/backup/`date +"%Y%m%d"` Anything wrong for this cronjob? What can I do and check? I can run with correct result, tried with root and normal ...
2
votes
1answer
29 views

Cancel and restart a certain Routine (python-script)

I have a question regarding a programm I run. Every once in a while, I need to restart a certain program. For that case, I usually run: screen ./run.sh arg1 arg2 "arg3" (screen, since I don't know ...
0
votes
1answer
17 views

Cron Script to run every 5 minutes

How would you use a cron deamon to execute a scheduled command such as gathering memory usage and adding that information to a file called /tmp/memory.usage, but only runs on Monday through Thursday ...
1
vote
1answer
19 views

How to manage /var/mail/root file

The size of /var/mail/root has been increasing as i am using lot of cron jobs and may cause memory shortage. Is it wise to delete that file? How to manage this problem?
2
votes
1answer
37 views

Working with cronjobs, bashscripts to automate MySQL backups

I am currently setting up a system which uses a MySQL database. I want to create automated backups which run every evening at 10:00PM and also keep the backups for 30 days. I know there is a way ...
-2
votes
2answers
43 views

How to set up a cron job to run every 10 minutes? [duplicate]

I have a python script, and i'd like to make it run every 10 minutes, how can i do this? Thanks in advance.
1
vote
2answers
28 views

How to log output of apt-get upgrade to .txt file

How do I log the output of apt-get upgrade to a .txt file. I read the man page and the -q option mentions formatting the output for logging. The reason I am asking this question is because I would ...
0
votes
1answer
40 views

Crontab runs /etc/init.d/ scripts but won't run service restart?

I am very new to Linux so please bare with me. I'm writing a script to restart mysql and send me an email whenever it goes down. I'm using crontab to run the script every x minutes. I'm having an ...
1
vote
1answer
20 views

How do I format custom crontabs in /etc/cron.d/?

My understanding is that I can add system jobs with simple schedules to /etc/cron.hourly/, /etc/cron.daily/ and so on, and system jobs with custom schedules to /etc/cron.d/. But in a large IT ...
-1
votes
0answers
24 views

scripts in /etc/cron.hourly not executing

I have placed my mysql backup script in /etc/cron.hourly, i even made it executable and also the script starts with the line #!/bin/bash. But when i run sudo run-parts -v /etc/cron.hourly my backup ...
0
votes
1answer
14 views

Trouble taking auto backup of mysql database to amazon s3

I am new to this concept and i am using ubuntu14.04 lts O.S. I created a bash script which would take backup of mysql db, and also created a cronjob for a desired time. The thing is the backup is ...
0
votes
2answers
33 views

Automatic backup of Mysql database to Amazon s3 server using script and crontab

I am new to this concept so can someone please guide me the script code details and the proper usage of crontab while backing up database to amazon s3 server at a desired time. I went through ...
0
votes
2answers
30 views

Script to backup Mysql database onto amazon s3

Can someone explain the script for backing up of Mysql database onto amazon s3?Script
3
votes
1answer
94 views

How to fix “Bad minute” error while installing a new crontab

I'm very new here, I've installed a fresh Ubuntu 16.04 lts to replace my windows OS. I'm tring to setup cronjobs to run mangento 2.1 via Ampps softaculous. The software has been successfully ...
1
vote
1answer
53 views

How to avoid password request for sudo for crontab scripts?

I need that a new user could execute sudo without any request of password, because this user has in crontab a .sh that uses sudo for some commands. I created a new user on my ubuntu server 16.04 x64 ...
0
votes
0answers
17 views

Screen br tightness script will not run in crontab

My laptop periodically turns on at full brightness, despite the previous setting. As a quick fix, I made the following script which works just fine if I run it manually: #!/bin/sh /usr/bin/...
0
votes
0answers
32 views

upload local files to ftp server in a cron

I want to backup a local folder to a distant ftp server daily. Files in that folder should not be duplicated at backup-destination. Any file older than 1 month in both local and server should be ...
1
vote
1answer
38 views

Set up of 'sendmail' headers for cron jobs (crontab-user@mydomain.xyz)

I use Ubuntu 14 on AWS EC2. I have a non-root user crontab. Upon cron job completion, an email is to MAILTO address, as set in crontab. The email sender looks like this: root@ip-111-11-0-11.us-east-...
6
votes
1answer
296 views

Cronjob script not being executed

I have installed a cron job to run at 4 AM every day however it is not being executed. If I run the script manually it executes with no problem so I don't think permissions are the issue. I checked ...
1
vote
1answer
29 views

Resetting crontab file to default

I've previously set a file to be crontab source file with crontab filename. How can I set it back to use default source? (the one that is modified with crontab -e) Thank you.
2
votes
1answer
72 views

Is TRIM enabled/supported for this eMMC?

I have a compact SoC (System On a Chip) Dell laptop with the DF4032 SanDisk eMMC 32 GB storage device soldered to its only PCB, and there is no information concerning TRIM support for it anywhere. The ...
0
votes
0answers
22 views

mysqlcheck error (when repairing databases)

MySQL hangs when i`m repairing databases in CRON with command: mysqlcheck -A --auto-repair -u root -p'[my_long_password]' Syslog shows: Jun 29 15:03:01 karsis CRON[4118]: (root) CMD (mysqlcheck -A ...
0
votes
1answer
37 views

Cron - Check if enabled on boot

I have a script and configuration file. Configuration file contains information about if script will run or not (enabled or disabled). If enabled, script must run in predetermined intervals. I ...
4
votes
1answer
26 views

ps inside crontab is not seeing a running process

I have this robot worker.py, which I just run as: python worker.py --details There are many problems surrounding this robot, so it keeps going down each 30 minutes. When the robot is running, ps ...
1
vote
0answers
29 views

At job doesn't stop?

I'm trying to schedule a job on Ubuntu using at command: /opt$ at now + 1 min warning: commands will be executed using /bin/sh at> echo "test" > /opt/t.txt at> <EOT> However, the ...
2
votes
2answers
65 views

Auto delete files older than 7 days

I am a complete noob at linux but I am starting to get the hang of it. I have an Ubuntu Server 16.04 running an FTP server to backup security video files. The files will be stored in folders like: /...
0
votes
0answers
26 views

Crontab not working with AWstats

A few weeks ago AWstats ceased updating the static web pages. I hadn't touched anything at all. I am a newcomer to shell but have got to the point where I can find my way around with a few basic ...
0
votes
0answers
24 views

Problem with non-root users crontab and CLI PHP

I'm stuck with the following problem and cannot seem to resolve it and would like some help if possible... I have created a user (lets call it user) and have edited the crontab for that user and have ...
1
vote
0answers
17 views

Can't connect to server through SSH after rtcwake reboot

I used crontab to create an rtcwake command to shut my computer down at midnight, and start it up at noon. The problem is, once it turns off, and then on again, I can't connect to the server through ...
0
votes
0answers
21 views

Crontab script error

I edited a crontab with the command sudo crontab -e and I inserted the line */1 * * * * /home/user/Desktop/bt.sh >> /home/user/logroot.txt 2>&1 The script contains: #!/bin/bash pkexec ...
1
vote
0answers
35 views

Send file through bluetooth crontab

I want to send a file named read.txt using command: bluetooth-sendto. It works using the direct command on terminal bluetooth-sendto --device=MACADDR path/to/read.txt. I want to execute it with this ...
1
vote
2answers
64 views

Cron Job doesn't execute

I created a cron job as root with the command: crontab -e Then I added 0 4 24-31 * 4 /home/backupscript.sh after the last line. The output of crontab -e looks like this: # Edit this file to ...
1
vote
1answer
62 views

How do I run a Supervisor task from cron.hourly?

I have a task defined in Supervisor that I would like to invoke hourly from /etc/cron.hourly. I can run it manually, but not from run-parts: $ sudo supervisorctl start my-task -- works # . /etc/cron....
0
votes
0answers
192 views

I can't install gnome schedule on Ubuntu 16.04

I would like to install gnome-schedule in my recent Ubuntu 16.04 but I can't find the how. It is not in ubuntu software and if I type "sudo apt-get install gnome-schedule" I get it's not found. I ...
1
vote
1answer
29 views

How to Create a cron job to backup ghost blog directory

I installed dropbox_uploader and set it up. I've successfully created a backup from the command line, now I'd like to make it a script and make it run at midnight daily. Can someone help me create a ...
1
vote
2answers
120 views

Hibernating from cron

I am trying to hibernate from cron using the command systemctl hibernate. However, I am getting the following error: Failed to set wall message, ignoring: Interactive authentication required. ...
0
votes
0answers
30 views

Error while running Rscript using crontab

I am running an Rscript using crontab. In that Rscript command, I am trying to load googlesheets package using library(googlesheets). Note, I have already installed googlesheets package. I am getting ...
1
vote
1answer
53 views

SSD as /tmp partition

I have a Ubuntu 14.04 server which has one drive where rootfs is mounted. I just added an SSD disk which I have mounted at /ssd Now I want my /tmp & /var/tmp to use this fast drive to speed up ...
0
votes
0answers
41 views

Comand to zip a folder with incremental file names?

I have this line in a cron command line: zip -r public_html-1.zip public_html -x *cache/smarty* It works fine but if the file exist it get overwritten. I need to change this command to create files ...
0
votes
2answers
51 views

Can't make cron open a Java program with a GUI

I made a simple "journal" program that will open a GUI, prompt for an entry and a few factors, and print this information to a file under the current date. I've written a short bit of java code that ...
0
votes
1answer
78 views

How to open an url in Firefox via cron (cron jobs scheduling) [duplicate]

Am trying to create a cron job to open a web page at a scheduled time. I have edited my cron using crontab -e and append my job. I wrote my job in a script like this: xdg-open (URL) I saved this ...
1
vote
0answers
47 views

Running a py script as www-data from a cronjob fails, but running as a command through terminal works

So, I have this script that needs to run every minute, so I set up a cronjob to run the script, lets say the command is: /var/www/script.py I use Webmin to setup the cronjob and set it to execute ...
1
vote
1answer
28 views

syslog shows 2 users and shows usb device when I didn't use one

So a lot of the syslog code history was deleted just before I was typing this up but here is some of it: SpiRegistry daemon is running with well-known name - org.ally.atspi.Registry Created slice ...
0
votes
0answers
61 views

Crontab - export DISPLAY=:0.0 or .sh script won't run

I have written a basic script to familiarize myself with crontab that changes my wallpaper every minute with one random image from a set folder: #! /bin/bash PATH=/usr/local/sbin:/usr/local/bin:/...
0
votes
2answers
48 views

Python script in CRON is not running in AWS ubuntu 14.04 instance

I want to schedule a CRON job into AWS Ubuntu instance. I have a simple cron sample like the following: import pandas as greatPanda import pprint import uuid df = greatPanda.read_csv('/home/soumik/...
0
votes
1answer
39 views

SSH connection in cronjob denied :“No supported authentication method”

I wanted to set up crontab to fetch resources from remote server to local server. Steps used as below In local server ssh-keygen with no passphrase copied the pubic key over to the server using ...