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

How do I do “Hello World” to try using cron

I am using Fedora 20, and want, eventually, to set up automatic backups. I managed a trial run on my previous Fedora 12 installation, but can’t get started again. I am using zshell. I thought I would...

View Article



How can I periodically check if my network is up and reconnect if not?

I’ve written a script to periodically check whether my network is up by pinging three major sites and disconnecting and then reconnecting my network if all three fail. This script works fine from the...

View Article

wp_next_scheduled not working with variables

Here is the code: <?php while ($parent->have_posts() ) : $parent->the_post(); ?> <?php $timi = get_field('timi', $post->ID); ?> <?php $timi2 = $timi / 2; //$int_timi =...

View Article

Script or plugin to send activation email automatically again after 2 hours

I’d like to set a cron job on my server to run an automated script that would tell WordPress to: Check the users that have signed-up but not logged-in in the last 2 hours. Resend the welcome email to...

View Article

Does performing $entity->save() on field collection programmatically clears...

I am using $entity->save() on a custom hook_cron that runs every minute. Does anyone knows if by doing $entity->save() , Drupal will clear the page cache of the nodes/views/panels housing it?

View Article


Cron job not behaving as expected

So I have a python script that pulls down git/svn/p4 repositories and does some writing to a database. I’m simply trying to automate the running of this script and based from what I see in syslog it is...

View Article

Configure cron for daily NMon task

I want to configure a cron job for NMon to gather stats during all day, everyday. Leaving a file per day to dump into NMon Analyser. I know the proper command to get a spreadsheet format its something...

View Article

What does '>/dev/null 2>&1' mean in this article of crontab basics? [duplicate]

This question already has an answer here: redirecting to /dev/null 2 answers

View Article


WordPress cron function not firing

I am trying to get a simple php function working with cron (based on a tutorial). I have the following: <?php if (!wp_next_scheduled('please_just_work')) { wp_schedule_event( time(), 'daily',...

View Article


Store partial database to an archive database time to time

As the community knows me that I’m not a PHP Developer by core, but trying to be one. With the company I’m working, I developed many WordPress powered News Portals, where- They publish at least 30 – 50...

View Article

Cron Log File Outputs Nothing

I get no output from my cronjob. The script the job is executing is: <?php require '/opt/bitnami/apps/wordpress/htdocs/wp-load.php';...

View Article

Need publish created POLL using cron

In our portal, we allow users to create poll. we received list of polls from users. we shortlist 5 top polls and need to published poll one by one to every month through crons. Please tell me how could...

View Article

Null message body; hope that's ok

I have the following command below as part of a cronjob. When I run the command via cron or at the command line, I get Null message body; hope that's ok. The contents of the email are empty but when I...

View Article


Need publish created POLL using cron [on hold]

In our portal, we allow users to create poll. we received list of polls from users. we shortlist 5 top polls and need to published poll one by one to every month through crons. Please tell me how could...

View Article

Prevent apachesolr from indexing queued content on condition

How can i prevent apachesolr from indexing the latest changed content when a certain condition is met? I have a dynamic node migration that unpublishes a set of nodes in postImport(). When cron runs...

View Article


Emulating /etc/cron.d/ on OSX

On most modern unixes, cron supports individual crontab files in /etc/cron.d, in which each task executes as a specified user. These files automatically update the crontab once edited. They allow...

View Article

Scheduling a module to run at a specific time

Is there any way to schedule a particular sub-module to run at a specific time? I found hook_cron but it seems to rely on a scheduled cron job in crontab to run cron.php and then cron.php calls...

View Article


run btrfs balance with cron

Since I run today in a problem with a full disk, which turns out is not unbalanced. Which you can fix with btrfs balance. So my question is: Is there any risk by ruining this by a cron job? (in cases...

View Article

Send backup by email with crontab

I use this cron job to do a backup of /home/blah/ each day at 01:00 a.m. : 0 1 * * * tar -zcf /home/blah/backup.tgz /home/blah/ In fact I would prefer that an email is sent to me with the .tgz file as...

View Article

How to run a cron job to execute every minute?

I am trying to create a directory having timestamp in its in name in /home directory. I have created following cron job as root user. But it’s not running. What’s wrong I am doing? Following is my cron...

View Article
Browsing all 165 articles
Browse latest View live




Latest Images