cron

why crontab process run repeated auto at sometimes

sometimes, we found our server's cron process auto repeated, repeated 2 or 3 times when use ps command, I get this: server_xx14:~ # ps aux | grep cron root 2596 0.0 0.0 11188 392 ? Ss 2009 0:25 /usr/sbin/cron root 21706 0.0 0.0 20812 944 ? S 09:30 0:00 /usr/sbin/cron root 23437 0.0 0.0 ...

PHP daemon process to submit post-dated status updates to Facebook, Twitter, etc.

I am building an app that lets users link their facebook, twitter, linkedin accounts to my app and than post updates to all these sites through my app. Additionally user can 'post-date' status updates. They can set a date and time to their update, and which will cause the update to be posted to the requested sites only at the specified d...

Run shell commands with PHP?

Occasionally my media server goes down and I'm wondering if it's possible to start it remotely using php to check the port and if it's not running invoke cron (or some other way) to run a shell command. Is this possible because this is not a strong area for me. Here's the process I use with PuTTy. login to shell cd to source/red5/dis...

Cron Expression confusion in the Spring Framework

Hello! My scheduler's application context defines this trgger: <bean id="myTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> <property name="jobDetail" ref="myJob"/> <property name="cronExpression" value="0 0 ∗ ∗ ∗ ?"/> </bean> Does it fire every day at 00:00? Or every hour? I'd say the latter, but the doc...

Long-running Script+Cron Job with PHP

Here's my issue: I have a long running script which is ran via cron job twice a day. The script will: 1) Select all users in the database 2) For each user, fetch data from another website based on the user's name. This takes 30-40 seconds, 2) Update that data in the database The problem is, the cron job is returning Internal Server ...

Help debugging a cron job which has the correct script path and works when manually triggered

Hi, I'm struggling trying to debug a cron job which isn't working correctly. The cron job calls a shell script which should unrar a rar file - this works correctly when i run the script manually, but for some reason it's not working via cron. I am using the absolute file path and have verified that the path is correct. Has anyone got an...

Automatically generate <img> and then insert it into a <html> page after uploading the im into an FTP folder?!

Hi This is a bit of a shot int he dark, but i dont even know how to google this to get started. It's a very simple idea, but it would be extremely useful to designers and creatives for creating a scrapbook of sorts. Baiscally i want to be able to drop an image I find on the internet onto an FTP folder which will just be a droplet on m...

C/C++ API to decode cron-style timings

Does anyone know of a library which will assist in decoding cron style timings, i.e. 30 7 * * 1-5 Which is 7:30am every Monday, Tuesday, Wednesday, Thursday, Friday. M. ...

mysql and 30 days

i'm working on a site that handles free subscriptions and i will like to now how to cancel their subscriptions after 30 days inactivity, i know that this has to be done with cron-jobs but i have no idea on how to count 30 after the last time the user logged in? ...

PHP Concurrency via Cron

I have a few scripts that need to run concurrently as separate processes. My plan is to have a cron job that executes multiple instances of these scripts at a set interval. Is this a good idea? What are the pros/cons to this approach? Are there any other options I need to consider? Bottomline: I'm trying to mimic multithreading. Any rac...

Which one is wordpress cron files to run?

Im trying to find which one is the cron file?, so that I can run it from other server. But Wordpress has 2 files with name "cron": wp-cron.php wp-includes/cron.php Its confusing. Even after searching, Im failed to find discussion about that 2 files. ...

Is Rails's "delayed_job" for cron task really?

delayed_job is at http://github.com/collectiveidea/delayed_job Can delayed_job have the ability to do cron task? Such as running a script every night at 1am. Or run a script every 1 hour. If not, what are the suitable gems that can do that? And can it be monitored remotely using a browser, and have logging of success and error? ...

cron job not doing as expect... not working properly?

I have a cron job setup to run every minute. /usr/bin/php -q /home/domain/public_html/ajax/cron.php > /home/domain/public_html/ajax/cron_output.log Inside the cron.php, I have #!/usr/bin/php <?php echo 'cron ran'; ?> The cron_output.log I can see the modified date is updating each minute, but the contents off it is blank. Why woul...

Cron job not storing errors/results to log

I have a few Cron jobs running using 'wget' on my server, none of which are storing errors/results to a log file. Each of the command lines is identical except the specific controller and function called. I'm having trouble with one of the cron jobs, even though if I navigate to it in the browser it works without a hitch; the other two...

Variables in crontab?

How can I store variables in my crontab? I realize it's not shell but say I want to have some constants like a path to my app or something? Thoughts? ...

How to get cron expression given job name and group name?

I'm using Quartz Scheduler v.1.8.0. How do I get the cron expression which was assigned/attached to a Job and scheduled using CronTrigger? I have the job name and group name in this case. Though many Triggers can point to the same Job, in my case it is only one. There is a method available in Scheduler class, Scheduler.getTriggersOfJ...

CakePHP shell as a Cron Job not working on godaddy

Hello, I have developed a application in CakePHP, and setup a cron Job with Shell. I have hosted the application in our development server, bluehost and setup the cron Job and its working fine. The cron Job Command was, /home4/enventur/public_html/pennystock/cake/console/cake -app "/home4/enventur/public_html/pennystock/app" message_...

Keep Drupal updated

Hi, I am trying to keep a couple of Drupal sites updated and I tired of the whole process. I recently find out about Drush and I was wondering if there is a module or a CRON command I can setup to keep the sites updated for me. Thank you. ...

Where to place a shell script?

Hello fellow computer people :) I have a shell script that I will use as a watchdog timer. It checks to see if my other 'main' program is running. If it is not, it restarts it. The question is: How do I get this installed on a Mac? Is there a folder/plist file scenario somewhere where the OS will automatically and periodically call the...

Cron job to call a JSP Page with Javascript

I am developing an Email client using Java Mail API. Now, to regularly check for New Mails, I want to call a page "Synchronize_update.jsp" I have to do it through a JSP as I need to also execute a piece of JavaScript Code towards the end which is basically an AJAX Call to Notify_all_for_new_mail.jsp. Can any one suggest me a solution? ...