Все вопросы: [cron]

197 вопросов

похожие теги: cron-taskdjango-cron
1
голосов
6ответов
249 просмотров

Anything wrong with using PHP as a server side language?

Is it wrong to use PHP as a server side language? For functions such as mail notifications / fraud checks (look for data, flag, then email type approach) / db cleanup / upload folder cleanup / cronjob type functions etc; I've ran into some projects lately where I've been successful with this app...

2
голосов
2ответов
1377 просмотров

Updating crontab from a makefile

I'm trying to update the crontab from a GNU Make file. The idea is like this: I look through the existing cron table and filter out all entries marked as mine (via the comment) and save that to a temporary file. Then I add my jobs to that temporary file and make it a new cron table. That way the ...

4
голосов
3ответов
6587 просмотров

Parse a cron entry in Python

All. I am trying to find a python module that I can use to parse a cron entry and get the next time it will run. With perl I use the Schedule::Cron::Events module but I would like to convert to python. Thanks in advance.

0
голосов
4ответов
1319 просмотров

How to run .NET exe using cron job on cloud server

Has anyone run an exe using cron job? I want to run an exe at scheduled intervals on a cloud server. The scheduled exe is created using .NET. The cloud server has facility of running Cron jobs using ruby, php, perl, python and http I do not have much knowledge of what a cron job is. What would...

14
голосов
6ответов
25877 просмотров

Why do processes spawned by cron end up defunct?

I have some processes showing up as <defunct> in top (and ps). I've boiled things down from the real scripts and programs. In my crontab: * * * * * /tmp/launcher.sh /tmp/tester.sh The contents of launcher.sh (which is of course marked executable): #!/bin/bash # the real script does a ...

1
голосов
1ответов
318 просмотров

Streaming, Daemons, Cronjobs, how do you use them? (in Ruby)

I've finally had a second to look into streaming, daemons, and cron tasks and all the neat gems built around them! But I'm not clear on how/when to use these things. I have a few questions: 1) If I wanted to have a website that stayed constantly updated, realtime, with my Facebook friends' act...

3
голосов
4ответов
3159 просмотров

Run a task every hour on the hour with App Engine's cron API

I need to run a task every hour on the hour (00:00, 01:00, 02:00, ..., 23:00) every day of the week, but can't seem to find an example in App Engine's docs of how to do this. There is an example of running at ask every hour, but this doesn't fit because the "start" of that hour depends on when y...

1
голосов
2ответов
518 просмотров

Run a script based on timestamp entered in MySQL database

I have a requirement to run a server script on scheduled times entered by the user. This is for a program for scheduling emails. A user can enter the specific times when they want to send the mail. I have a table which stores the userid, the email text and the time at which the mail is to be sent...

1
голосов
1ответов
78 просмотров

Upload clocking script

How can I make a script that, once a day, will upload a file via ftp to several different servers, then take note (in a log) of how much time the uploads took? Thanks to Rajax I have the cronjob set up to execute this so far as the script, let's say it's called ftpScript.sh: #!/bin/sh HOST='ft...

0
голосов
3ответов
1512 просмотров

Will cron execute php files or only CGI scripts?

Can .php be used in Crontab function on Linux or wil it execute only .CGI scripts? I'm using Plesk Control panel, I did the settings as per the Crontab doc, but i think it's not executing the php files. Does any one have the Idea about what more to do with

9
голосов
3ответов
5686 просмотров

Cron fails on single apostrophe

The following does work as expected: date +'%d-%b-%Y-%H-%M' 28-Sep-2009-14-28 But none of the following 4 entries from crontab are working. * * * * * date +\'%d-%b-%Y-%H-%M\'>> /backup/shantanu/testing.txt * * * * * date +'%d-%b-%Y-%H-%M'>> /backup/shantanu/testing1.txt * * * * *...

1
голосов
2ответов
2417 просмотров

Cronjobs in Django

I'm writing a database application where certain parts of the database might need updates based on time, not based upon user actions. For example, there may be certain values that are updated daily, and certain other values that must be updated say, four hours after the database entry is created...

11
голосов
5ответов
4888 просмотров

Cron API: is there such a thing?

Is there such a thing as a Cron API? I mean, is there a programmatic way of adding/removing Cron jobs without stepping onto Cron's toes?

0
голосов
2ответов
296 просмотров

Setting up cron in windows without getting a popup?

I know that the scheduler can be used to create a cron job, but in my case, that job involves accessing a url. Problem is, if I use WGET or a batch file, a window keeps popping up. Any suggestions on how to get passed this?

0
голосов
2ответов
225 просмотров

How to set and enable new php content by date in php?

I would like to set 5 new content items for monday through friday, but don't want to have to enable them each day. Would it be best to set a timestamp in a mysql field, then something like this. Set up a crontab with php that runs if timestamp is equal to today set "on" to 1. What date/time f...

1
голосов
2ответов
261 просмотров

Auto add to database on last day of month

I have a database which stores the work my staff do. One particular query I run tells me how much money I owe them for the current month (month to date), based on the hours that I have recorded for them. However, I would like to store this information into a table itself, for various reasons, n...

1
голосов
2ответов
318 просмотров

Cron, Email, Performance

I am building a system for my client. It's a lot like www.getafreelancer.com. There are 2 types of user: Service Provider and Service Buyer. Service Buyers post projects. Service Providers are notified of any new projects posted, which fit into their classifications. Assume: There are approx 100...

11
голосов
6ответов
3093 просмотров

Cronjob every 25 hours?

How do I set up a cronjob that runs every 25th hour?

1
голосов
4ответов
6310 просмотров

using curl to cronjob a url

I have an application on php-Codeigniter hosted on MediaTemple and I want to have a cron job runing a controller, the support told me to use CURL I tried using without any succes, example: curl http://mydomain.com/admin/action/get My controller inserts some information to a database, the cu...

19
голосов
6ответов
26053 просмотров

Cron send email with STDERR but NOT STDOUT?

I have some python scripts that run on a daily basis in cron. How can I have cron send me an email ONLY WHEN THERE IS STDERR OUTPUT from my script? I want to be able to mail multiple recipients, and set the subject line individually for each cron entry. I tried this: ./prog > /dev/null | m...

1
голосов
2ответов
402 просмотров

MediaTemple cron jobs working on 1&1 Internet?

I've having to get a cron job that's currently working on MediaTemple (Grid Service) to work on a new 1&1 Internet account. I've yet to do this yet, but is there anything I need to take into consideration? Or... effectively... cron jobs are cron jobs, they'll work where ever? It's a cron job...

1
голосов
4ответов
1168 просмотров

How to set a complex custom crontab in google-app-engine (java)?

I am building an app for which I need to set up cron jobs. What I want to do is to set the specific minutes in a hour where specific crons should run. For instance: Task1 at 1st minute of the hour Task2 on every second minute of the hour Task3 every 2 minute only in the second half of the hour ...

36
голосов
3ответов
49749 просмотров

how to set cronjob for 2 days?

We would like to use a cronjob to create a database backup. The backup should occur ones every two days. Can the following cron-entry be used? 0 0 2 * * * backup-command If this is wrong please tell me the correct command for setting the cron for 2 days.

1
голосов
4ответов
1417 просмотров

Possible for Google Bot to Execute PHP Script

I have a CRON job php script that I just set up not too long ago. However, I noticed that the PHP file executed (without the cron job activating). It appears that it happened when a Google Bot crawled the file, because I noticed that the following engine visited my page: http://www.google.com/...

0
голосов
2ответов
1578 просмотров

cron job problem with soapclient included in php

I have a php script, and need to run it everyday. This script has a soapclient, and it works fine if I run it as a script using browser directly. However, some fatal errors if I set it as a cron job. The script is very simple as "crontest.php" <?php $mage_url = 'http://******.com/api/?ws...

0
голосов
2ответов
444 просмотров

Calling Rubygem tmail from Dreamhost CRONjob

I have a cron job to run a Ruby script, which runs fine on the command line (from user "user"), but the cron fails because it cannot find a ruby gem TMail. I manually installed the tmail gem to my ~/.gems/ dir, pointed to by my ~/.bashrc script, as suggested by Nate. When invoked manually from ...

1
голосов
2ответов
152 просмотров

Unpredictable log file writing in PHP

I have a script that runs every two minutes for a "Tweet-getter" application. In a nutshell it puts tweets onto Facebook. Every now and then it hiccups and despite my error checking, reposts old tweets continuously, every two minutes (the cycle of it being run as a cron job). I have a log.txt tha...

3
голосов
4ответов
2210 просмотров

Adding/Removing cron job using PHP

Here's my situation: We have an outside provider that will be pushing XML files to our server every 30 seconds at a specified time in the week.  That time will vary each week. So, I would like to give my users an interface on the management side of our site where they could "push a button" and tr...

0
голосов
5ответов
1079 просмотров

Cron job for big data

I'm working on a social network like Friendfeed. When user add his feed links, I use a cron job to parse each user feed. Is this possible with large number of users, like parsing 10.000 links each hour or will that cause problems? If it isn't possible, what is used on Friendfeed or RSS readers to...

21
голосов
5ответов
32836 просмотров

How do I run a command as a different user from a root cronjob?

I seem to be stuck between an NFS limitation and a Cron limitation. So I've got root cron (on RHEL5) running a shell script that, among other things, needs to rsync some files over an NFS mount. And the files on the NFS mount are owned by the apache user with mode 700, so only the apache user ca...