Lifelesspeople.com

 Forum FAQsForum FAQs  Knowledge BaseKnowledge Base  RulesRules   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   HostingHosting   RegisterRegister 
 DonateDonate   WikiWiki   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

cron jobs

 
Lifelesspeople.com Forum Index -> Support Questions
Post new topic   Reply to topic View previous topic :: View next topic  
Author Message
Desbrina
Jadeite


Joined: 11 Jun 2005
Posts: 2973
Location: Earth

PostPosted: Sun Aug 05, 2007 3:28 am    Post subject: cron jobs Reply with quote

I'm trying to set up a cron job so that a file runs every 15 minutes

I'm using the standard interface but a couple bits have me confused

First of the field called: Command to run:
What do i put there? Is it the location of the script or something else

Second, if i want it to run every 15 minutes, what do i put the Hour(s) as?

The rest i believe i understand, just not those two
_________________
Midnight Tempest - A Sailor Moon TCG
Balanced Force - A Star Wars TCG
Back to top
 
krt
...


Joined: 11 Jan 2005
Posts: 4695
Location: Down Under

PostPosted: Sun Aug 05, 2007 4:16 am    Post subject: Reply with quote

Are you trying to use a cron with a PHP script?

Hour: Every hour
Command: wget -q /path/to/script.php
Back to top
 
Desbrina
Jadeite


Joined: 11 Jun 2005
Posts: 2973
Location: Earth

PostPosted: Sun Aug 05, 2007 4:20 am    Post subject: Reply with quote

yeah, its a php script located in my area

Do use url or this for the path?
/usr/home/Desbrina/public_html/mt/script.php
_________________
Midnight Tempest - A Sailor Moon TCG
Balanced Force - A Star Wars TCG
Back to top
 
krt
...


Joined: 11 Jan 2005
Posts: 4695
Location: Down Under

PostPosted: Sun Aug 05, 2007 5:22 am    Post subject: Reply with quote

Either is fine or so I think, but I would use the path relative to document root (what you have there) because it saves a lookup for the URL.
Back to top
 
Desbrina
Jadeite


Joined: 11 Jun 2005
Posts: 2973
Location: Earth

PostPosted: Mon Aug 06, 2007 5:09 pm    Post subject: Reply with quote

it seems only the url version is working

The script emails me when it runs so i know it works

It doesn't email if i use
/usr/home/Desbrina/public_html/mt/script.php

but it does if i use
http://midnighttempest.com/script.php


Thanks for the help with it though, just wanted to point the above out
_________________
Midnight Tempest - A Sailor Moon TCG
Balanced Force - A Star Wars TCG
Back to top
 
martin
Cafe Montevideo


Joined: 17 Mar 2005
Posts: 1030
Location: Uruguay

PostPosted: Sun Aug 12, 2007 1:28 am    Post subject: Reply with quote

If you want you can try WebCron ( http://webcron.org/ ). I have never used it so I don't know how it works.

PS: I forgot to say it's free Smile
_________________
http://martin.com.uy

http://cafemontevideo.com
Back to top
 
Desbrina
Jadeite


Joined: 11 Jun 2005
Posts: 2973
Location: Earth

PostPosted: Sun Aug 12, 2007 2:22 am    Post subject: Reply with quote

its ok, i have it working
_________________
Midnight Tempest - A Sailor Moon TCG
Balanced Force - A Star Wars TCG
Back to top
 
Desbrina
Jadeite


Joined: 11 Jun 2005
Posts: 2973
Location: Earth

PostPosted: Fri Oct 12, 2007 3:32 am    Post subject: Reply with quote

i have another question about them. They run fine, but everytime them run, i end up with many files with the same name in one of my folders (the root one before public_html)

Is there a way to delete them, either automated through cpanel, or a way through the scripts?
_________________
Midnight Tempest - A Sailor Moon TCG
Balanced Force - A Star Wars TCG
Back to top
 
Display posts from previous:   
Post new topic   Reply to topic    Lifelesspeople.com Forum Index -> Support Questions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Home | Hosting | News | Forum | Links | System Status | About | Archive | Donate ]
Powered by phpBB © 2001, 2002 phpBB Group
All trademarks and copyrights on this page are owned by their respective owners. Posts and comments are owned by the poster. Everything else © 2001 - 2007 Lifelesspeople.com