Cron is a time-based job scheduler in Unix-like computer operating systems. Cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates.

learn more… | top users | synonyms (2)

0
votes
1answer
19 views

Cronjob change email subject and sender name

I have a cronjob setup using crontab that looks like this... MAILTO=myemail@example.com 00 02 * * * /home/myaccount/myscript.sh This works great and at 2AM it runs the script and emails me the ...
0
votes
2answers
36 views

Cron is retrying a job every 15 minutes

I have an Amazon Linux AMI with this in crontab: 0 7 * * 1 root /usr/bin/wget -q http://localhost/digest_weekly.php -O - >> /var/log/digest_weekly.log This calls the script digest_weekly.php ...
0
votes
0answers
12 views

Cron Daemon Message [closed]

Does anyone know what the below message means and what is triggering it, I get sent it every hour from my Cron Daemon via email. FYI some numbers in the below have been replaced with * in case of ...
1
vote
3answers
40 views

How to set MAILTO in cron using Puppet?

The expectation was that there would be a mailto attribute, but the this source denies that cron { 'resource title': name => # (namevar) The symbolic name of the cron job. This name is ...
0
votes
1answer
33 views

Unable to start cron service [duplicate]

Few days ago I added a cronjob using crontab -e which should run every 6 hours, however I noticed that cron job is not working. When I execute my script manually it works, and it should write some ...
-2
votes
1answer
24 views

Write Python Output to File in Cronjob

I have a script (/home/user/script.sh): #!/bin/bash /usr/bin/python /home/user/program.py >> /home/user/logs/out.log & and it is working. The output from the python script is written to ...
0
votes
1answer
31 views

How can I list all cronjobs created by puppet?

I have several crontabs defined in a pp file, e.g: cron { 'puppet-cron1': ensure => present, command => "cat /etc/issue", user => root, minute => '*/30', } cron { ...
0
votes
0answers
16 views

Elastic Beanstalk and Worker Tier? (PHP)

I'm trying to setup my app that's hosted on EB with a worker that will run some basic cron jobs to feed an RDS database with data that the app consumes. I deployed this cron.yamlat first: version: 1 ...
-1
votes
0answers
16 views

Edit Crontab Save Path

It is possible to change the path of crontabs of each user to different folder other than /var/spool/cron ? I couldn't find any config file to edit that path. Can be done?
0
votes
0answers
19 views

Error in crontab file: bad day-of-week

When I run crontab -e on my Debian server and add these lines: # System statistics */10 * * * * /usr/lib/sysstat/sa1 1 1 > /dev/null 2>&1 59 23 * * * /usr/lib/sysstat/sa2 -A > /dev/null ...
1
vote
0answers
13 views

OOM using CRON but not using SHELL

When I start a java program by shell, everything is working well. However if I start the same program with the same command and same user by CRON, I get a java.lang.OutOfMemoryError just after a few ...
0
votes
1answer
29 views

Cronjob starts multiple processes

Cronjob creates multiple processes for the same script. One using /usr/bin/php /path/to/php/script And other using /bin/sh -c /usr/bin/php /path/to/php/script These are 2 separate ...
0
votes
0answers
10 views

Find Unknown Predicate JailedShell

Well, after months experimenting with ', ", and \" it seems i cant find the right pattern that could generate the correct code for a cron job on a jailed shell. I got this code below works on jailed ...
1
vote
0answers
47 views

How to use “keep_environment” option in exim 4 on Debian

I am running exim 4.84_2 on Debian, now since a few weeks I get the following mails from anacron: /etc/cron.daily/exim4-base: LOG: MAIN Warning: purging the environment. Suggested action: use ...
-1
votes
0answers
18 views

Check if expected mail received

I'm using a backup system that sends an email after a successful backup (and also after an error). But what if what failed was the email? Each one of the servers have different schedules (using ...
0
votes
1answer
49 views

%CPU at 99% when cronjob runs php script every minute

I am using a debian server and for some reason when I run this php script using crontab every minute it says that I am using 99% of the %CPU with the php command (in the cronjob the command is php) ...
0
votes
1answer
20 views

Cron jobs not sending mail - Solaris 11

I need some assistance please. I've written several scripts which runs on a cron schedule as root in Solaris 11.3. When I run these scripts manually I receive the mailx mails. But when the scripts ...
0
votes
1answer
54 views

CentOS Crontab Woes

I have a shell script that I'm looking to run daily, (to update CentOS and send out a confirmation email via SSMTP). The script is working ok, and sits in /etc/cron.daily, the problem is that it's ...
0
votes
1answer
17 views

Why am I seeing much more cron jobs in webmin than in `crontab -e`?

I am just starting to learn cron jobs. Basically I am going to use webmin to manage my cron jobs, I am also reading some basic information about cron jobs. So far I've learned that /etc/crontab ...
1
vote
1answer
45 views

ZFS Send Script works when run manually but not in Cron (Already tried common solutions)

Script on sending end is as follows: #!/bin/sh #Variables bigdata=vid-zfs-live/bigdata today=`gdate +%m-%d-%y` yesterday=`gdate -d'yesterday' +%m-%d-%y` #Actions zfs snapshot -r ...
0
votes
0answers
13 views

Wyse Enhanced Ubuntu Terminal Locked Down?

I'm dealing with about 20 Wyse T50 thin-clients and I want to set up cron, however, it seems like there are a number of things locked down in the Wyse Enhanced Ubuntu terminal. For instance, ...
0
votes
1answer
12 views

Linux last login get the logins yesterday and email it the next day or specific time via crontab

I need to know the last login yesterday and email it to me via crontab.... Since the last command shows all the login you need to scroll up. Using grep and cut might do the trick.
1
vote
2answers
64 views

Scheduling a job to run every 23 minutes

There are cases when I need to run a scheduled job in more complex way that Cron is able to provide. Say, to schedule a job to run every 23 or 65 minutes. In the latter case it can be worked around ...
0
votes
0answers
25 views

Cron jobs running 9hours 15min late

I have a Cron Job set to run Nightly at 22:01 followed buy three others at 23:59 02:10 and 02:15 The Cron log shows that they are kicked off at the correct time.. :cron.log file snippet: Apr 12 ...
0
votes
1answer
57 views

Error configuring Cron with php command

So i have been configuring a phpIPAM server and as the documentation suggests, to make an automatic discovery of hosts, i need to use a scheduled process. I have tried in /etc/cron.d with no luck and ...
0
votes
2answers
43 views

User management with cronjob [closed]

In my organization, we want to implement a user management standard after an utter chaos. Where we(organization) and the client was able to access root user and they made changes which took down the ...
0
votes
2answers
16 views

Cannot locate currently running cron jobs

I know this is a dumb problem, but I cannot seem to locate/access a group of cron jobs that I have running (which I know are running, because everything is working properly and we can see the expected ...
-2
votes
3answers
31 views

seetting cron on server issue with saving and exiting [closed]

I am new to servers and I want to setup cron. I want to check if cron is running on the server. To do that I use the following command. crontab -l I looked on Google for a command to check what is ...
-2
votes
1answer
37 views

Add date using echo without calculating [closed]

I should add the line to /var/spool/cron/crontabs/root on my ESXi: /bin/echo "0 3 * * 6 /ghettoVCB-master/ghettoVCB.sh -g /ghettoVCB-master/text.conf -f /ghettoVCB-master/text.list > ...
-2
votes
1answer
34 views

Script to remove suspended accounts automatically from Linux server [closed]

I have Linux hosting server with centOS, which have WHM installed on it. To reduce the costing and mis-usage of Disk space i am creating a shell-script which automatically removes the suspended ...
0
votes
1answer
45 views

Cron Job error says ioncube is not installed when it is

I have a website (mivprofit.com) and this website works with a script that requires a couple of cron jobs to run once a day. I have a cron email set and whenever the cron job runs this is the email ...
0
votes
2answers
177 views

Unable to run a python3 script in CentOs7 [with python2.7] via cronjob

I have been trying to deal with this strage problem all morning. I have a simple crawler.py file, which contans a code that can only run under python3 to be exact under python3.3 evenrionment Now, ...
0
votes
0answers
27 views

Scheduled Cron Jobs auto Deleted after few days

i am using CentOS Linux 7.1 with control panel webmin virtualmin and now after upgrade webmin i am facing a problem with my crontab and the problem is which cronjob i have made by me these all are ...
1
vote
0answers
26 views

Anacron fails to open folder cron.daily

Recently I switched from user-specific anacrontab ( using -t ) to the global-one. Now each day anacron drops me a message (email to root) that it failed to open the cron.daily folder: Subject: ...
-1
votes
1answer
29 views

env not working in FreeBSD cronjob [duplicate]

On my FreeBSD server, I have setup a cron script for backups using Duplicity. This script is as follows: #!/bin/sh export PASSPHRASE= export FTP_PASSWORD= keyid= remote= excludelist= ...
0
votes
1answer
82 views

cronjob error “/bin/sh: /path/to/file: No such file or directory” [duplicate]

i've installed a python software that allows to run javascript on the server i've put the binary file (jsrunner) in this address /usr/local/bin/jsrunner so in the ssh when i try it it works fine ...
0
votes
0answers
23 views

Yum-cron output to both email and log

When configuring yum-cron on a CentOS (07 x64) host, i noticed the following option (/etc/yum/yum-cron.conf) - # How to send messages. Valid options are stdio and email. If # emit_via includes ...
-1
votes
1answer
34 views

Cronjob doesn't run. Similar cronjob does run. Issue with Env Vars??? Fedora involved. psql involved [duplicate]

I have cronjobs like so * * * * * /usr/bin/psql -U usename dbname -c "select usename, now(), pg_terminate_backend(pid) from pg_stat_activity where state like 'idle%' and (now() - query_start) > ...
0
votes
0answers
142 views

Cannot allocate memory problems - update-notifier-common

I'm running a Ubuntu 14.04.3 server on a Digitalocean droplet with 1GB RAM. I'm getting weird memory allocation errors, even though I have plenty of memory available. I started noticing this from the ...
-5
votes
1answer
43 views

cron - How many times the cron job will run when given aterisk(*) on all positions [duplicate]

If we define a cron job with * * * * * /some/task/to/perform, how many times the job will executed in 60 seconds?
0
votes
0answers
34 views

nginx stop logging after crontab modified the log file

I have a web server(django) running on nginx + gunicorn. nginx writes its regular logs to: ~/myproject/log/access.log and it writes errors to: ~/myproject/log/error.log it works pretty well for ...
1
vote
3answers
44 views

Cronjob: E-Mail with Cronjob output from mailutils is empty

I am tempering with my cronjobs to change the sender and subject for emails sent by the cronjob. For sending emails I installed the mailutils package on Ubuntu 14.04. This is how I am sending my ...
-2
votes
1answer
27 views

What is the “cluster” cron job?

I understand that cron job is some task running automatically on unix-like OS. My server is ubuntu14.04 with webmin installed. I was trying to setup a cron job through webmin, there is this "cluster ...
7
votes
2answers
387 views

Why does `crontab -` remove crontab, and can it be cancelled?

I hurried and forgot the e in crontab -e before I hit Enter. A prompt appeared, so I closed with Ctrl+D, same as I usually exit input prompts. Now, without warning, my entire crontab is empty. ...
0
votes
0answers
30 views

Crontab by hostname

My system is having 3 nodes and the cron scheduling is defined in one of these 3 nodes. So while checking with crontab -l at times I am getting proper cron listings at times I am not as the node ...
0
votes
1answer
50 views

Debian: How to lock root account AND still use cron. (cron does not work while locked account :( )

I'm setting up a small private server which is connected to internet. For security reasons I would like to lock my root account after setting everything up and then use a sudo user for further ...
0
votes
1answer
34 views

MySQL Backup Cron Job

I have a cron job which backup up my MySQL database by exporting it. The script includes the root password to get the job done. I get the message: Using a password on the command line interface can ...
1
vote
0answers
15 views

How to change $PATH for crontab in Opensuse [duplicate]

I have a script written which works perfect on terminal however gives error when called through crontab. It took me a while that the problem is with the cron environment not my script. so I tried ...
1
vote
1answer
39 views

IPSec Tunnel goes down during long periods of inactivity

I have 2 AWS regions I have connected using an OpenSWAN IPSec tunnel. This works great in our production environment but in our test environment where 1 of the regions has long periods of inactivity, ...
0
votes
2answers
56 views

$0 empty in script when run by cronjob [duplicate]

I am trying to setup automated backups for an AWS EBS volume and using https://github.com/colinbjohnson/aws-missing-tools/tree/master/ec2-automate-backup to do so. The backup script used is the ...