i have made a script helloworld.sh and its path is /home/ehimkak/cronTabTest:
#/usr/bin/sh
echo $1
if [[ $1 = "cron" ]] ; then
echo "hiiiii"
else
echo "sorry"
fi
If I run it from the / location with command
/home/ehimkak/cronTabTest/helloworld.sh cron
it runs fine.
Now I added a cron job by first setting the editor as vi (e...
Hi,
I have to run couple of scripts which crawl some 1000s web pages and save some information for every 10 minutes.
I am using dreamhost shared hosting for my PHP site hosting.
What would be the appropriate way to configure these services in cron so that it executes 24X7.
Please let me know which host i can use for the same....
We've just upgraded from CF 9 to 9.0.1 (ColdFusion 9 Update 1). We're running on Windows Server 2008.
After the upgrade we noticed on our server that we were getting a lot of these messages in server.log:
"Information","scheduler-6","10/05/10","12:34:48",,"neo-cron.xml has been modified . Reloading the service coldfusion.scheduling.Cr...
I am wondering if I can use a command in a cron job like so:
/usr/bin/php -q /home/**/public_html/scores.php?date=12/05/2009
I haven't been able to find anything that says I can or can't so I figured I would ask. I thoughts are that I can't but hopefully someone can tell me for sure.
If that is the case is there a way for me to inclu...
Hi there!
I'm writing a tiny Sinatra app, and I want to host it on Heroku for simplicity sake. But, what I have is a task that scraps some sites and adds some data into my database every hour. Currently this is just written as a ruby script that needs to be executed. What Heroku has is a rake based cron job. Now if this was a rails ...
hi there!
i'm currently working on an app for the android os that displays some data. to ensure this data is up-to-date, it is required that the app fetches updates from a remote server from time to time.
as the data does not change very often, this update should be carried out once per week. i want to give the user the ability to choos...
Hi
New to bash scripting, I'm writing a script to copy my TV shows accross from a download folder to an archive folder.
So far I have this:
find `*`show1`*`.avi | cp \"" $0 "\" "/mnt/main/data/tv/Show1"
find `*`show2`*`.avi | cp \"" $0 "\" "/mnt/main/data/tv/Show2"
I understand this is not the best method, but my skills of bash ...
I have several PHP files to be run by cron. I set up the crons using command-
crontab crontab.txt
Inside the crontab.txt file, I have written cron commands like this:-
#(Updating tutor activities) - every minute
* * * * * /usr/bin/wget -O - -q -t 1 http://project/cron/tutor_activities.php
But none of the functionalities are working...
Hi I have a problem with a mysql stored procedure I set it going on this import and sorting of data 1.5 Million rows it did 1/2Million and then stopped any ideas on how to stop these timeouts?
I've tried a php cron but get the error
Error = PROCEDURE fix_photos can't return a result set in the given context
any ideas?
Richard
...
I tried to update git svn repo (git svn rebase) with cron job, but I get this error.
usage: git-cat-file [-t|-s|-e|-p|<type>] <sha1>
error closing pipe: Broken pipe at /usr/local/libexec/git-core//git-svn line 4290
cat-file --batch: command returned error: 129
I've added git path in cron script, seems not helping.
export PATH=$PATH:/...
Hi there,
I have a special situation where I need to query a service to get information for n users at a specific time each day. The problem is that if I do this all at once it will put the service offline / crash it.
So to overcome this it would be better to run this for x number of users every 10 seconds or so until x = n and then st...
Hello,
I am trying to build a wikipedia link crawler on google app engine. I wanted to store an index in the datastore. But I run into the DeadlineExceededError for both cron jobs and task queue.
for the cron job I have this code:
def buildTree(self):
start=time.time()
self.log.info(" Start Time: %f" % start)
nobranches...
I am learning Python/Django and my pet project is a photo sharing website. I would like to give users the ability to upload their photos using an email address like Posterous, Tumblr. Research has led me to believe I need to use the following:
-- cron job
-- python mail parser
-- cURL or libcurl
-- something that updates my database
...
I have 3 jobs in my crontab. I want to recieve emails if only 1 of them fails and not for other two. Is there any way to restric emails to one type of cronjob?
...
I have not used cron before, so I can't be sure that I did this right. The tasks I want to be automated don't seem to be running. I did these steps in the terminal:
sudo gem install whenever
change to the application directory
wheneverize . (this created the file schedule.rb)
I added this code to schedule.rb:
every 10.minutes do
run...
Hi,
I want to run a script just ONCE by setting up a cron job using "at" command.
I'm using this now:
<?php
include "config.php";
if (isset($_POST['add']))
{
$sql = mysql_query("INSERT INTO {$table}(msg) VALUES('{$_POST['msg']}')");
if ($sql)
{
$cmd = "wget /var/www/index.php?id=" . mysql_insert_id() . " | sudo at " . $_POST['runa...
Hi, in my project, i need to send emails to the registered members of the site once every month. For this, i have setup a cron job on cpanel and it is working fine.
Whats my doubt is that, tomorrow the number of users in the site will increase and there would be thousands of users. Then does the cron job work as usual ?
I want to know,...
I'm looking for a good cronjob tutorial or book to learn how to create one using PHP.
...
I'm using PHP and was wondering how can i run my PHP script to run at midnight and check if a member has been inactive for six months if so delete.
...
I manage an enrollment website which needs some new features for our agents. What we are trying to accomplish is the following:
For every 3 members and agent
enrolls, he receives a gift card
(email sent to administrator to mail
out)
For 10 enrollments in a month, the
agent receives his/her marketing
materials free of charge for a year
...