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
27 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 ( ...
1
vote
1answer
30 views

Is there any alternative for crontab -e?

I want to run the PHP script for every 1 minute in server,with out using cron. Is there any other method is there ? (By using cron its working).
52
votes
5answers
79k views

“(CRON) info (No MTA installed, discarding output)” error in the syslog

I have a fresh install of Ubuntu 12.04.1 LTS an a number of servers. I have not added any cron jobs or edited my crontab on those servers, however, at around the same time for each machine, I get a ...
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
22 views

Cron Convert FFMPEG Problem [closed]

FILE NAME - cron_convert.php chdir('/var/sentora/hostdata/zadmin/public_html/ctkdonline_com/cron/'); set_time_limit(0); include_once 'System.php'; include_once 'vendor/autoload.php'; $sys = ...
1
vote
2answers
4k views

How to add the logs to a crontab with time stamp

In crontab, I scheduled a daily backup script. Now when the cron executes the script the status are logged to a log file as shown below. 0 0 * * * /home/backup.sh > ...
0
votes
1answer
24 views

Lock crontab / make it write-protected

I am currently trying to build a thin-client with a Raspberry Pi 2 based on Ubuntu MATE 15.04. I needed to write a command in the user's crontab (mate-session-save didn't work with root's crontab) and ...
0
votes
1answer
56 views

nfdump schedule with cron

Hi I tried to generate nfdump file with crontab, but whatever the reason it dosent work my script #!/bin/bash nfdump -mR /home/user/test -zw /data/fnf1.dump this script itself works and all other ...
0
votes
1answer
13 views

Continuous logging of a filtered TCP stream

I am trying to log messages from a program "adsbox" that sends text lines on TCP port 30003. These lines are ADS-B messages received from passing airplanes. The rate is a couple of lines per second. ...
1
vote
2answers
117 views

How to execute a php script using cron?

I am trying to execute a php file via cron every 2 minutes, but it's not working. My crontab is: */2 * * * * usr/bin/php /var/www/test/cron.php What am I doing wrong?
1
vote
1answer
27 views

Suspending when CPU idle

I am using 14.04 (Trusty). I have Power -> Suspend when inactive for 2 hours. This works fine if I am logged in and then walk away. But if I am not logged in, it never suspends. Moreover, I understand ...
0
votes
0answers
31 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
9 views

How to get a list of currently running crob jobs? [duplicate]

How can I identify what processes started by cron are running right now?
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: ...
1
vote
2answers
4k 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 ...
1
vote
2answers
39 views

Cronjob bashscript help

I've looked through a bunch of cronjob troubleshooting guides, but I can't seem to find what I'm doing wrong. This script runs just fine if I run it manually. Running it from crontab just isn't ...
3
votes
2answers
3k views

Cannot get ntpdate cron to run

I'm trying to have a daily cron update the clock on my 12.04 server. I've followed the instructions here, but it still doesn't run: After a few weeks, the clock once again is off by a few seconds. ...
0
votes
0answers
37 views

how to run python file again and again in ubuntu? [duplicate]

I am new to ubuntu . I have a python file . i just want to execute it in every 15 min . any body can tell, how i can do it ? with all basic steps Thank you
1
vote
1answer
43 views

Schedule shell script to display output in terminal

I have added a shell backup script to crontab, and it seems to run every night, but I currently need to check the target to see that it's worked. What would be much more helpful would be for the task ...
200
votes
5answers
279k views

How do I set up a Cron job?

I want to schedule a task to run on a regular basis and have heard that Cron is the way to do this. How do I add Cron jobs in Ubuntu?
1
vote
2answers
185 views

Disable TRIM to avoid file system corruption

I read the following article on a problem with TRIM and Samsumg. I am running Ubuntu 14.04.1 and I have a Samsung PRO 850 of 250GB. I am worried to get my file system damaged due to same firmware ...
1
vote
0answers
22 views

Schedule command during shutdown? [duplicate]

How do we execute a command such as it executes everytime one logs out or shutdowns or restarts the machine ? To be more specific, I want the autotrash to be executed at logout, or shutdown or ...
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: ...
1
vote
1answer
24 views

Crontab works incorrectly

I have a job set to run as per below cron schedule 0,15,30,45 * 8-17 * 1-5 However, instead of running only on Mon to Fri and only from 8th to 17th of the month, this job runs every 15 mins ...
0
votes
1answer
59 views

Improperly set display when running a root crontab job involving GUI

When running the script below from my local user crontab, with sudo before /usr/bin/FreeFileSync (last script's line), a small progress window opens on my GUI and things go well. The only thing is I ...
0
votes
1answer
18 views

how to disable predefined cronjob?

Is it safe (or is there a better way) to disable a cronjob that came with Ubuntu than to just remove the respective file out of the cron.* directory? In this particular case, I want to deactivate the ...
3
votes
1answer
50 views

Script running from terminal but not in crontab

My problem is the following: I've made a script called copy.sh in the /var/etc folder in order to copy some .cfg files from there to myfiles #!/bin/bash SHELL=/bin/bash ...
1
vote
1answer
36 views

Cron executes old version of script

I defined crontab job by means of: sudo crontab -e As I can see it is listed when I type: sudo crontab -l and it's listed as well when I type: run-parts --test /etc/cron.monthly Than I ...
11
votes
3answers
40k views

How can I tell if my hourly cron job has run?

I have created a file called ntpdate in /etc/cron.hourly #!/bin/sh /usr/sbin/ntpdate-debian date > /tmp/william_tmp date > /william_tmp date > ~/william_tmp echo test I also did Chmod 755 ...
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 ...
2
votes
2answers
68 views

How can I start Steam with a cron job?

How can I start Steam using a cron job? I've tried just putting steam in cron, but it does not work. I've tried some odd stuff that I don't understand like DISPLAY=:0.0 steam %U but that does not ...
0
votes
1answer
42 views

not getting output in terminal while running the php script

test3cron.php <?php @ob_start(); session_start(); $callbackUrl = "http://mgstore/test3cron.php"; $temporaryCredentialsRequestUrl = "http://mgstore/oauth/initiate?oauth_callback=" . ...
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
1answer
51 views

CRON jobs sending email, but I didn't configured it

I'm always taking a look on the logs to see anything suspicious. But, I only noticed today those logs: Aug 3 06:32:10 nori-hidamari anacron[1234]: Job 'cron.daily' terminated (mailing output) Aug 3 ...
14
votes
4answers
51k views

Verify if crontab works

I want to verify if a certain crontab works properly. I have added a job like this: */2 * * * * /path_to_my_php_script/info.php >/dev/null 2>&1 I know that i redirect to the null ...
0
votes
1answer
18 views

Why would cron not be running as a daemon?

I'm on Ubuntu 15.04, and logged in as root, but when I run ps -ef | grep cron | grep -v grep to make sure the cron daemon is running, I see the -f option, which means it is running in the ...
0
votes
1answer
41 views

Copy file from one ubuntu to another ubuntu

By using cron job I've successfully created a backup of mysql database on the Ubuntu. Below is the command under mysqldump.sh /opt/lampp/bin/./mysqldump -u root database-name | gzip ...
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
1answer
2k views

Why did /usr/lib/php5/sessionclean run 50 times simultaneously on my 14.04 system?

When I sat down at my Ubuntu 14.04 system this morning, the root cron job /usr/lib/php5/sessionclean was running over 50 times at once, producing 50+ copies of the following commands: root 8147 ...
2
votes
1answer
168 views

Can I set up a cron job on Ubuntu Phone

I've been looking around, and can't find if Ubuntu Touch can run cron. So my question is: Can it? Also does it have a standard set of bash utils installed?
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
1answer
72 views

Cannot get cron.service status using systemctl

I noticed my cronjobs were running at the incorrect times, so I changed my time zone. I now need to restart the cron daemon, but none of the commands I'm using are working for me. Every one of them ...
0
votes
1answer
52 views

Running Bash script at login

This question has been asked numerous times but for some reason, none of the solutions proposed worked for me. I just want to run a simple script after the user has logged in. Here are my attempts: ...
0
votes
1answer
11 views

Change timings of unattended updates

I have unattended updates set to run daily on a 14.04 server. It is run by cron.daily at midnight along with other jobs. I would like to change the time that unattended updates runs but not the other ...
3
votes
1answer
2k views

How to create a script to check for internet connection?

I'm new to programming in linux. I started bitcoin mining using linux mint xfce 15. I'm really good following directions, just don't know how to start. I need to create a script that can run every 15 ...
24
votes
6answers
22k views

Changing default crontab editor

I am trying to change the default editor from nano to vim. I have run the following commands: sudo update-alternatives --config editor and update-alternatives --config editor Both now output: ...
1
vote
1answer
31 views

Cron doesn't start any command

I have a problem with cron on my Ubuntu VPS. Wanted to plan reboot for every day at 12:30 so I've used command crontab -e added line 30 12 * * * reboot And nothing yes I am logged as ROOT during ...
4
votes
1answer
3k views

shut down linux server and turn on automatically at specific time

I'm having an assignment where the lecturer is asking me to create a bash script to shut down a server at 11pm and turn it on at 6am. I'm able to do it by using sudo shutdown -h 23:00 and it works. ...
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 ...