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
11 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).
0
votes
0answers
17 views

Cron Convert FFMPEG Problem [on hold]

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 = ...
0
votes
1answer
23 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
12 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. ...
0
votes
0answers
29 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?
1
vote
2answers
35 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 ...
0
votes
0answers
44 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
42 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 ...
1
vote
1answer
41 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 ...
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
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
19 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
23 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
15 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
49 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
35 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 ...
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
1answer
40 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
50 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 ...
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
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
65 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
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 ...
0
votes
1answer
49 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: ...
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 ...
1
vote
0answers
52 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 ...
5
votes
0answers
62 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 ...
14
votes
1answer
1k views

What happens if you use @reboot reboot in crontab file?

What would happen if you use: sudo crontab -e And add the line: @reboot reboot Will it go into a infinite loop of rebooting?!
1
vote
3answers
94 views

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

I added the following command in crontab -e: 15 * * * * php /home/rizwan/PHP-workspace/mgstore/testcron.php I need to run testcron.php every 15 minutes; for testing purposes I used the following ...
1
vote
1answer
24 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 ...
1
vote
1answer
27 views

run script from directory using cron

I have this in my crontab: 59 23 * * * /home/peter/Documents/script.py > /home/peter/Documents/log.log 2>&1 But I keep getting /bin/sh: 1: /home/peter/Documents/script.py: not found in ...
1
vote
1answer
21 views

Why doesn't my second cron task get run?

I have these two task to be run. The first one gets run every 1 minutes and I want the second one to be run at hour:minute every day every month. */1 * * * * python /root/vine/hei.py 22 20 * * * ...
1
vote
0answers
28 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 ...
0
votes
1answer
57 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 ...
1
vote
1answer
42 views

Script to program periodic switch-on and off

My PC has a problem in its motherboard so when it's inactive for many hours after being on it won't start up, both when it's completely switched off or suspended. It takes between 8 to 18 hours to ...
2
votes
0answers
46 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 ...
-1
votes
2answers
114 views

How to run a cron job every 36 hours?

I have been blowing my mind over few days to do this.. (Don't ask me why I want to do it!) How about adding two jobs like this? 00 06 current_day-31/3 * * job 00 18 next_day-31/3 * * job
5
votes
1answer
173 views

How do I run a bash or python script via cron, visible on the local desktop

I have a production server that runs several bash scripts on the local desktop. Two scripts run all the time and don't need to be stopped. I have a third Python script that I need to start at 9AM. It ...
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
1answer
74 views

MySQL Crontab Check

I have a serverpilot.io server running from digitalocean (1gb Ram), MySQL will crash once a week, the stats say the server is using ~256 mb out of 1 gb, but mysql will crash saying out of memory.... ...
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 ...
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 ...
-1
votes
2answers
67 views

How To Start Python Script On Bootup [duplicate]

I have a couple of Python scripts I want to launch at bootup. One is located at the path below. /home/my-sickbeard-install/SickBeard.py Since Cron has never ever worked for me and nobody on about 5 ...
1
vote
3answers
86 views

How to change niceness of process by name

Java process is killing my computer (Intel i3, 8GB RAM). It takes over whole CPU and system starts to hang. I was trying to change niceness of java processes but i have to control it for all time and ...
0
votes
1answer
26 views

App Won't Start On Bootup When Using Cron

I have a ts3.desktop file in my /usr/share/applications folder that I want to run on system boot. The procedure I used to try and get this working is below. crontab -e Then in the editor (it opens ...