Cron function set to run once per month not completing
I have a cron function that is being triggered but not completing. The function is supposed to run only once on the first of every month. The function runs but, I think, gets as far as comparing the...
View ArticleRequest a page – as admin – via command line to build up cache
Folks: I have a pretty hefty view page which has been overridden with template files to produce a custom gantt chart for a long list of users. For each row of gantt data – the outputted html is cached...
View ArticleShall I save my crontab file in /tmp?
I ssh to a server, and want to add some daily jobs (specifially to renew Kerberos tickets even when I log out and I still want my programs in screen or tmux continue to run) to cron. So I run crontab...
View ArticleA generic cron wrapper that records all output
I am hoping to write a cron wrapper that records all output in a folder $CRON_LOG_DIR. It would be used as, e.g., follows: * * * * * $CRON_WRAPPER "<job name>" "command" which would record the...
View ArticleDisable Elysia Cron task programmatically
I have a custom module where I create several cron tasks using HOOK_cronapi. This is done when the user visits a page and has a form to create those tasks. I also need that the user can disable those...
View Articleupdating SQL tables every x seconds (the right way)
I hope this is in the right topic area. Sorry if it isn’t. I want to ask the right way to do this task. I have a few service API’s I need to query every 30seconds or so that I would like to store in a...
View ArticleHow to set up cron job in Linux to delete all regular files?
I need to set up a job to delete all of the regular files in the /home/admin directory on the second day of every month at 8:30 A.M. It seems like wrong command: # crontab -e 30 08 02 * /bin/find...
View ArticleProcess long query and output data to file
I have several nodes in my site (7822 at the moment) and I need to generate new data from those node values. I have a custom module with all the functions and calculations. The problem is that, because...
View ArticleSchedule WordPress Auto-Updates to only run during business hours
We’ve turned on WordPress Auto-Updates (yey!), but, just in case this does break anything, we’d like to only run Auto-Updates during daylight hours (e.g. 09:00 – 17:30). We have the “on init” WP-Cron...
View ArticleCron job not saving
I’m trying to write a very basic cron job but it doesn’t seem to be saving. Here’s what I’ve done: 1) crontab -e This opens up a file with vim. 2) #!usr/bin/env python 0 23 * * 0...
View ArticleHow to redirect tarsnapper output to /dev/null?
I use tarsnapper‘s make command for managing tarsnap backups like this: tarsnapper -c /usr/local/etc/tarsnapper.conf make Which works like it should and I get an output like this Creating backup mail:...
View Articletput: No value for $TERM and no -T specified
I am trying to run a bash script I have via cron, and I am getting the following error at the beginning of the execution: tput: No value for $TERM and no -T specified Here is what is in my crontab: 0 8...
View ArticleUltimate Cron Background Process Taking a Long Time
I’m having background process on Ultimate Cron process various queue items, but the fastest it usually processes them is at least one minute, and sometimes 3 minutes per item. This seems incredibly...
View ArticleDifference between CRON tab 0/5 and */5?
The title says it all is there any difference between creating a CRON tab using 0/5 and */5? For example: 0/5 * * * * vs */5 * * * *
View ArticleHow do I process a huge list of files?
I have a huge list (> 100 000) of files that need to be processed. I want processing to run in the background and continuously (when it has processed the last, it just restarts on the first). I’ve...
View ArticleCron Job to Keep Daemon Running?
let us suppose I have a cron job like this: */15 * * * * /path/to/thedaemon The daemon (it being a python daemon via from daemon import runner) will not allow multiple instances of itself, which in...
View ArticleUnable to run perl script for ssh login to windows server (using...
I have a Perl script which is doing remote login to the windows server via the Net::SSH::Perl module. If I run the script manually from my shell, it gives no error. Running from a crontab, however, it...
View ArticleScheduled publishing timings, cron, cache clear
We have a site where users make extensive use of scheduler to schedule publishing of articles etc. Site crons are run externally through drush and elysia_cron is installed to give fine-grained control...
View ArticleCron job fails due to sleeping wifi?
I wrote a cron job to do backups over wifi to another computer. It works perfectly when I’m using the machine, but I prefer to schedule it at night when I’m not using it. The first step is to ping the...
View ArticleUsing cron to start a process on a terminal without using screen?
I want to start a process in a terminal using cron. I want the process to start in a terminal, so that I can continuously see the output of the process on the terminal, and kill it / restart it etc. I...
View Article