cron

How to get CRON to call in the correct paths

Hello, I'm trying to get cron to call in the correct path's. When I run a Python script from shell the script run's fine as it uses the path's set in bashrc but when I use cron all the path's are not used from bashrc. Is there a file I can enter the path's into for cron like bashrc or a way to call the path's from bashrc. Sorry I don'...

Script executes successfully in commandline but not as a cronjob

I've a bash script that runs a ruby script that fetches my twitter feeds. ## /home/username/twittercron #!/bin/bash cd /home/username/twitter ruby twitter.rb friends It runs successfully in command line. /home/username/twittercron But when I try to run it as a cronjob, it ran but wasn't able to fetch the feeds. ## crontab -e */...

Does MySQL have time-based triggers?

I would like to execute a procedure periodically, how to do that in MySQL? ...

Bash+cron: Redirecting, and restoring, stdout and stderr produces permission denied

I've got a script that calls out to a bunch of commands, some of which are noisy to stdout, some to stderr, some to both. I intend the script to be run by cron, so I don't want it to be noisy and mail me every day -- only in error conditions. So I do: be_quiet() { # save stderr in FD 3 exec 3>&2 exec &> /dev/null } die() { ...

Is there a Javascript cron implementation somewhere that I'm missing?

I'm aware of timing issues in Javascript, how its not exact/off by milliseconds etc, but I need something to at least attempt to do browser-based scheduling. In terms of features, I'm thinking something along the lines of scheduling patterns described here: http://www.sauronsoftware.it/projects/cron4j/manual.php#p02 Anything out there?...

How to deregister a CRON job in AppEngine?

I registered a cron job in the google appengine. It runs fine. Since I deleted the whole content of the app, I want this job to not run anymore. I don't know how to do it. ...

Ruby script as service

Well, the title say it all. I have a ruby script I want running as a service (one I can start and stop) on my Linux box. I was able to find how to do it on Windows here Some readings point to creating daemons or cron tasks. I just need something simple I can call on my box's reboot, and can stop/start whenever I please. my script has a...

How can I test a CRON job with PHP?

This is the first time I've ever used a CRON. I'm using it to parse external data that is automatically FTP'd to a subdirectory on our site. I have created a controller and model which handles the data. I can access the URL fine in my browser and it works (however I will be restricting this soon). My problem is, how can I test if it's...

How to automatically reflect the new Updates (on Database) to User Pages

I am trying to create a new Notice Alert using PHP and Javascript. Suppose that a 100 users are currently logged into to the Online Notice Board Application and any One user posts a new notice. I want an immediate alert signal on all the users screen. I know, that the simplest way of doing it is to constantly Ping the server but I don't...

Is it possible to create a text formatted list from SQL Server which can then be processed by a PHP Cron job?

Requirement : Should update MySQL database with that of MS Sql Server updates which reside on Linux and Windows hosting on the same web host 1and1. Accessing each other database from either server is not possible on shared hosting, thanks to 1and1's geniuses.. The solution I chose : I want to output all the active listings in a text for...

Help with Kohana 3 and a CRON

I've set up a CRON to call a URL in Kohana 3. php /home/user/public_html/index.php my/route/in/bootstrap.php It seems to access the URL fine. However, I have received this error (send back in an email that my host sends per CRON) Undefined index: HTTP_HOST SYSPATH/classes/kohana/url.php [ 40 ] Source of url.php Which is in a Ko...

Kohana 3 and CRON always accessing index.php (not following the URI argument)

OK, I hope this is my last question about CRON jobs and Kohana 3. Note: others are not duplicates, just other problems. Here is my CRON job (setup in cPanel) php /home/user/public_html/index.php --uri=properties/update As per this answer. I have set it up so it emails me the output. It is running every 5 mins. Unfortunately, it alw...

server performance: multiple external connections and performance

I am creating a php script that requires the server to make several cURL requests per run. I'll be running this script through cron every 3 minutes. Im looking to maximize the amount of cURL requests I can make in a 24 hr period. What I am wondering is if it would be better from a performance standpoint to get a dedicated server, or se...

Google API Hooks, is there a way to be Programmatically Alerted When a Google Doc is Updated?

Does Google have an API for registering hooks/callbacks for whenever a document is updated? That way, I could run a process on one of my servers every time a doc was updated. If they don't have that, what the recommended way to accomplish that? Cron? Anything else? ...

Want to improve my simple site/db backup script with auto removal of old backups.

I have the following simple script for backing up my website files and db. The script is run each day via a cron job. #!/bin/sh NOW=$(date +"%Y-%m-%d") mysqldump --opt -h localhost -u username -p'password' dbname > /path/to/folder/backup/db-backup-$NOW.sql gzip -f /path/to/folder/backup/db-backup-$NOW.sql tar czf /path/to/folder/bac...

CRON jobs in php deployed in windows platform

How to run a scheduled job scripted in php using windows? I'm using Windows XP sp3. ...

set time in cronjob according to UTC

Hi, My application runs in differen timezones. and it runs at 24 hrs midnight UTC time. So i need to change it every time when timezone changes. So i need UTC time in my cron job not local time. <servlet> <servlet-name>PerfMonHouseKeeper</servlet-name> <servlet-class>com.timer.PerfMonHouseKeeper</servlet-class> ...

Delaying emails in PHP to avoid exceeding server limit

Okay, so here's my problem: I have a list of members on a website, and periodically one of the admins my site (who are not very web or tech savvy) will send a newsletter to the memberlist. My current memberlist is well over 800 individuals long. So, I wrote an email script that sends the email to the full memberlist, with the members l...

Consideration of cron job with respect to time

Hi all, Is it possible to run my cron job according to the GMT where as, my server is cosidering IST time formats. In future is it possible to use different time zones...? To do this can anyone suggest what all steps i need to follow as i am working on linux. Thanks in advance.... ...

I'm trying to run some PHP scripts as CLI instead of over HTTP. How do I make them play nice?

Hi everyone. I'm using some PHP scripts from FeedForAll to join together RSS feeds (RSSmesh) and display them as HTML (RSS2HTML). Because I intend to run these scripts fairly intensively and don't want the resulting HTTP requests and bandwidth to count towards my hosting quota, I am in the process of moving to running them on the web ho...