Single Cron


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Single Cron
# 1  
Old 01-05-2009
Single Cron

Hi there everyone. So my host doesn't allow crons more then every 15 minutes I need to do every 10 minutes.

So i was thinking of using sleep. Would this count as a single cron?:
Code:
php -qf /home/blah.php; sleep 600; php -qf /home/blah.php;

Do you think I can get away with that?

My other idea was to make blah.php handle it:
Increase the timeout limit to 10 minutes. Then run it once sleep 10 minutes then call the function again then end.


Which way do you think would be lowest concern to host?
# 2  
Old 01-06-2009
Quote:
Originally Posted by pg300
Hi there everyone. So my host doesn't allow crons more then every 15 minutes I need to do every 10 minutes.

So i was thinking of using sleep. Would this count as a single cron?:
Code:
php -qf /home/blah.php; sleep 600; php -qf /home/blah.php;

Do you think I can get away with that?

Try it and see.
Quote:
Which way do you think would be lowest concern to host?

Ask your host's system administrator.
# 3  
Old 01-06-2009
Its hostgator does anyone have any experience with them and this issue?

That's a good idea ill also try do that but they take forever to respond. So if anyone knows please still post Smilie
# 4  
Old 01-06-2009
Do they allow you to have 2 chron jobs? You could run the same process twice or make a copy with a new name and run one at 0, 20, 40 minutes ant the other at 10, 30, 50 minutes.
# 5  
Old 01-16-2009
They're only letting one run every 15 minutes Smilie Its host gator Smilie
# 6  
Old 01-16-2009
A cron can only run once every 15 minutes. So you can have multiple crons, each individual one can not run more often then once every 15minutes. I would also suggest staggering the times that they run.

*/15 * * * *
*/15+2 * * * *
*/15+4 * * * *

At least I think that works >_<
# 7  
Old 01-27-2009
Hey that's a good idea. Thanks man ill try that. I used to do ******* but got contacted by host saying dont do every minute. I just want to do something that they dont care about. What do you think of my one cron just put in sleep 60 between each php call?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Paste 2 single column files to a single file

Hi, I have 2 csv/txt files with single columns. I am trying to merge them using paste, but its not working.. output3.csv: flowerbomb everlon-jewelry sofft steve-madden dolce-gabbana-watchoutput2.csv: http://www1.abc.com/cms/slp/2/Flowerbomb http://www1.abc.com/cms/slp/2/Everlon-Jewelry... (5 Replies)
Discussion started by: ajayakunuri
5 Replies

2. UNIX for Dummies Questions & Answers

Execution problem with Cron: Script works manually but not w/Cron. Why?

Hello gurus, I am making what I think is a simple db2 call from within a shell script but I am having difficulty producing the desired report when I run the script shown below from a shell script in cron. For example, my script and the crontab file setup is shown below: #!/bin/ksh db2... (3 Replies)
Discussion started by: okonita
3 Replies

3. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

4. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

5. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

6. Shell Programming and Scripting

Multiple lines in a single column to be merged as a single line for a record

Hi, I have a requirement with, No~Dt~Notes 1~2011/08/1~"aaa bbb ccc ddd eee fff ggg hhh" Single column alone got splitted into multiple lines. I require the output as No~Dt~Notes 1~2011/08/1~"aaa<>bbb<>ccc<>ddd<>eee<>fff<>ggg<>hhh" mean to say those new lines to be... (1 Reply)
Discussion started by: Bhuvaneswari
1 Replies

7. Shell Programming and Scripting

Replace single quote with two single quotes in perl

Hi I want to replace single quote with two single quotes in a perl string. If the string is <It's Simpson's book> It should become <It''s Simpson''s book> (3 Replies)
Discussion started by: DushyantG
3 Replies

8. Solaris

User entry in both cron.allow and cron.deny

Hello All, Anybody please help me to know ,what happens when a user having entry in both cron.allow and cron.deny files.Wheather the user will be able to access the crontab??? Thanks in advance Vaisakh (5 Replies)
Discussion started by: ksvaisakh
5 Replies

9. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

10. AIX

AIX and cron logs filtering ?: /etc/cronlog.conf, /var/adm/cron/log

Hi, I can use 'crontabs –e' and do all the scheduling I like. However I would like to auto send myself just the cronjobs logs that fail. That is to say the PIDs that fail and the related lines with those PID’s only. (Not the full set of logs) Has anyone done this work? Or does an AIX 5.3 tool... (0 Replies)
Discussion started by: Keith Johnson
0 Replies
Login or Register to Ask a Question