Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 29th, 2004, 11:23 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Cron Job ????

Hello,
was wondering if anyone out there could help me get started with a cron job calling a php script. The way I have it working right now is using a refresh page every 15 seconds. I have read some documentation and it doesn't look to hard.
The script just runs out to a mysql database and if the conditions are meet sends an email.... Looking for some examples...

Thanks

Reply With Quote
  #2  
Old February 29th, 2004, 11:29 AM
GG Dart GG Dart is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 438 GG Dart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Cron Job ????

how would it be if you just use
GET http://yoursite.com
that would run your php script and then you just set the times when it shall run.
Or did you want to know something else?

Reply With Quote
  #3  
Old February 29th, 2004, 11:33 AM
GG Dart GG Dart is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 438 GG Dart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Cron Job ????

I guess you have something like cpanel.
with use
GET http://yoursite.com
I ment, put that into that space when you click on the cron job thing.

Reply With Quote
  #4  
Old February 29th, 2004, 11:40 AM
CodeKadiya CodeKadiya is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Colombo,Sri Lanka
Posts: 2,313 CodeKadiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to CodeKadiya
RE: Cron Job ????

If you have a CPANEL, type this in the command field.
Quote:
curl http://domain.com/yourscript.php

Reply With Quote
  #5  
Old February 29th, 2004, 11:45 AM
GG Dart GG Dart is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 438 GG Dart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Cron Job ????

you can use
lynx http://domain.com/yourscript.php
aswell, so you've got a great selection

Reply With Quote
  #6  
Old February 29th, 2004, 11:49 AM
CodeKadiya CodeKadiya is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Colombo,Sri Lanka
Posts: 2,313 CodeKadiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to CodeKadiya
RE: RE: Cron Job ????

Quote:
so you've got a great selection

Grrr.. Lucky Anon!!!

Reply With Quote
  #7  
Old February 29th, 2004, 01:07 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Cron Job ????

I have never built a cron job script. I read a little about curl and it is a little over my php / computer knowlege. I was thinking I could just create a cron job that ran every 15 - 30 seconds that would call a php script that had no html in it.
I am not quite sure how to set a cron up or if this is the correct use for my situation. Here where I read my info at..
https://panel.dreamhost.com/kbase/index.cgi?area=2506


Reply With Quote
  #8  
Old February 29th, 2004, 01:09 PM
GG Dart GG Dart is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 438 GG Dart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Cron Job ????

have you got cpanel or something like that installed on your host?

Reply With Quote
  #9  
Old February 29th, 2004, 01:14 PM
GG Dart GG Dart is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 438 GG Dart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Cron Job ????

Ah I just read your link, have you got access to the shell if you haven't got cpanel?

Reply With Quote
  #10  
Old March 1st, 2004, 11:30 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Cron Job ????

Yes I can make it to shell fine and can move around fairly well. I am running slackware and it comes with cron so this where I am most likely to use for right now...


Reply With Quote
  #11  
Old March 1st, 2004, 11:57 AM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Message Moved

Thread moved from 'PHP Coding' to 'Server Administration' by postalcow.

Reason: Cron

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > Cron Job ????


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway