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
2answers
25 views

cron job executing script not writing to file

I have a server running AIDE, and a cron job that runs executes a bash script and sends an email alert out. It is still a WIP, but I can't get the script to run properly. When the script is executed, ...
0
votes
0answers
23 views

Cronjob won't run PHP script on Linux PBX server but I can run the script manually [duplicate]

I have a cronjob that runs every Monday at 7:45 am. In the crontab, this is the line: 45 7 * * 1 php /script/php-code/parse.php "/script/php-code" On a different Debian 8.4 server, I have the ...
-1
votes
0answers
10 views

When I create a droplet, how can I leave it active for just 1 hour?

I'm creating droplets when needed via the DigitalOcean API v2. As I'm just barely launching the app, I think it would be cheaper to launch droplets when needed instead of paying for 24/7 access. That ...
0
votes
0answers
7 views

Upload with SFTP after I create a backup [closed]

I found a script that executes a MySQL backup. I wonder how could I modify this script to the point I can run it via a cron job, so I won't be required to input a password. What should I do, if I ...
1
vote
1answer
34 views

Getting my server maintenance script right

I have two routine postgresql maintenance tasks that require deletion of aged rows from certain tables of my web application. Both take ~1 hr to complete, respectively. Currently, each of these ...
1
vote
2answers
20 views

How do I include the password for the user 'postgres' in a maintenance script?

I'm setting up a cron job to do some routine maintenance for a postgresql database. The script is as follows: #!/bin/sh dbname="dbname" username="postgres" psql -d $dbname -U $username << EOF ...
-1
votes
0answers
9 views

Switch to Redis or use Redis as cache for mySQL [closed]

I have been using mySQL to make an multi-platform application. I am looking upscale the app and so I am looking into noSQL alternatives. I have been getting the hang of Redis and I really like it. I ...
0
votes
0answers
18 views

Which server should I run CRON jobs/scripts on? [closed]

My co-worker, having worked with established companies, has seen and recommends replicating the system where CRON jobs with independent scripts are stored and occur on the database server. This seemed ...
0
votes
0answers
14 views

Time to run znapzend job

I have setup znapzend and have created the following job: /opt/znapzend/bin/znapzendzetup create --recursive --mbuffer=/usr/bin/mbuffer --mbuffersize=1G \ > --tsformat='znapzend-%Y-%m-%d-%H%M%S' \ > ...
1
vote
0answers
38 views

Cron not logrotating for cron.daily

I'm running a rhel7 server and I have a rsyslog logrotate config file that doesn't seem to run using cron job. It will only work if i run it manually Troubleshooting steps i took: logrotate -df /etc/...
0
votes
1answer
18 views

Adding cron jobs using crontab from several different files

I have two files where in I have listed my cronjobs: cron.dev1.txt cron.dev2.txt Now I am using crontab in the following manner: crontab cron.dev1.txt and crontab cron.dev2.txt When I do ...
-1
votes
0answers
13 views

don't work in linux ubuntu 14 (crontab) [duplicate]

I'm trying to run this command in crontab started with php, but does not work. @reboot /usr/bin/php -q /var/www/server/teste.php @reboot php -q /var/www/server/teste.php what could it be?
0
votes
1answer
25 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
59 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 ...
1
vote
3answers
74 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
77 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
27 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
33 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
30 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 ...
0
votes
0answers
31 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
21 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
37 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
20 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 ...
2
votes
0answers
175 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 ...
0
votes
1answer
55 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
27 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
63 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
51 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 "$bigdata"@"$...
0
votes
0answers
14 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
16 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 22:...
0
votes
2answers
44 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
17 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
32 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
38 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 > /var/log/...
-2
votes
1answer
35 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
67 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
201 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
29 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 ...
2
votes
1answer
30 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
35 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= /usr/local/...
0
votes
1answer
96 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
29 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
35 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
186 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
71 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
36 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
51 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 ...