Quantcast
Channel: Question and Answer » cron
Browsing all 165 articles
Browse latest View live

Change events order in bash script that writes to crontab

Coming from the solution on this post I have made a few changes to the original script but output is not like it should be. Below is the script as I have right now: #!/bin/bash add=$1 php=/usr/bin/php...

View Article


Excluding specific date and time in cronjob

I am trying to schedule a cron job where the requirement is the job has to run every day, every month and every min and every hour EXCEPT 2nd and 4th sunday of every month from 1 to 3 AM. Is there a...

View Article


Create cron jobs to repeat every X units of time starting on an arbitary unit

I have a cron job on CentOS that I want to execute every 3 minutes but I have many other cronjobs that run at every 3 minutes starting from 0, 3, 6, 9… So, to avoid my server getting too overloaded, I...

View Article

Importing large file images in Module Feeds

I need advice on importing large quantity of content with Feeds module. I am importing large images using the module Feeds. As there are many images (a few thousands) and many are a bit large (960...

View Article

Cronjob to push MongoDB Backup via git

Task: Create a Cronjob that executes a bash script once every night. The bash script should do a mongoDB Backup and push it to a Git Repo. So I created a cronjob as the root user via the crontab -e...

View Article


How to setup a mail list with 2 hour autoresponder?

I have a WordPress blog and I want to put my product behind a subscribe list sign up. Here are my requirements: Need subscribe list to work with WordPress or Dreamhost (my hosting company is dreamhost...

View Article

How to add subject line when sending email output of find using ssmtp

I got a script running (as cronjob) that will list the files in a folder before doing a Rsync job and emailing me the list. How can I add a subject line. find /path/to/folder/ -type f -size +1M -name...

View Article

Image may be NSFW.
Clik here to view.

Search api solr deleted terms showing up in facet

Why would taxonomy terms that I have previously deleted show up in my facet? I’m using search api solr. There is no term named “23″; it is a tid, but tid 23 is not in the database yet my facet shows 29...

View Article


WP Cron as Fast as WordPress AJAX?

I have a question about performing a very long and resource intensive task within WordPress. Here is the scenario. I have a plugin that allows users to run a task that takes a very long time and once...

View Article


Cron does not execute my Python script [closed]

I’m trying without success to execute a Python script using cron on a Debian Jessie Raspberry Pi. I can execute the script manually, but it fails to execute with cron. Here’s what crontab -l shows: */2...

View Article

Simplenews Scheduler Sending Newsletter Twice a Week

I’m having trouble configuring how to send a simplenews newsletter to subscribed users twice a week. I’m using Simplenews scheduler but just don’t know how to configure it. I want to send a newsletter...

View Article

Cron runs in all server instances

We are facing really big issue with the cron. Our site is running on 2 ec2 instances under the load balancer. We have lot of cron tasks which are performed every day. But the problem comes when the...

View Article

Cronjob not being executed

I’m trying to run rsync-books with a crontab. Typing crontab -e outputs: 55 12 * * * diegoaguilar /storage/bin/rsync-books Where /storage/bin/rsync-books looks like this: if [ -d "/media/Beagle/books"...

View Article


Cron job stops when another one is running

I have two cron jobs in my site (I’m using Elysia Cron). They are set in my own module. One runs every minute and one every hour. Code below: function mymodule_cronapi($op, $job = NULL) {...

View Article

Executing a cron 9 to 5 and at midnight

It’s simple for the ones who understand it but for me most of the times it’s a big puzzle. I want to execute a PHP script 5 minutes after each hour from 9 to 5 and i want to run it once more 5 minutes...

View Article


crontab doesn't work corectly [duplicate]

This question already has an answer here: Using notify-send with cron 6 answers

View Article

How can I get at to work on OSX?

My at on Mac OS X 10.11 seems to be incapable of launching jobs. I tried: echo "date > foo" | at now Running atq afterwards shows the job queued and no file foo was created. To make sure the problem...

View Article


How can a site programmatically detect if cron has not run in a long time?

I’m developing a module intended to proactively warn the admin if there are problems with the site. The idea is to periodically check the system status report and sends an email notice if certain...

View Article

Rebooting Ubuntu if necessary

My Ubuntu needs sometimes rebooting if it has downloaded upgrades. Can I automate it like do reboot if it is required and there is no unsaved works and I’m sleeping (say for example 3 am)?

View Article

How to update crontab for a user with a script without duplicating comments

So I’ve noticed that I’ve dumped a lot of annoying comments in the top of quite a few crontab files by using crontab -u user -l > /tmp/crontab.user #muck with the file crontab -u user...

View Article
Browsing all 165 articles
Browse latest View live