icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old January 20th, 2004, 12:51 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jul 2003
18 posts
Gave thanks: 0
Thanked 0 times
I understand what a cron job is, but I don't know how it is exactly setup. I went to Cron Jobs and selected my timeline (that was easy), as for the command to run, there is a file I have on my site that I need to run. Do I simply put the file location in the command line? IE- www.myweb.com/dir/cron.file.php

I would be great if that is all I have to do. If anyone could affirm that's all I have to do, great. If not, let me know what I need to do.

Thanx in advance.
__________________
www.bartoinc.com
server: Ping
bartoinc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old January 20th, 2004, 1:12 PM   #2 (permalink)
Senior Member
Super #1
 
FredFredrickson's Avatar
 
Joined in Nov 2003
Lives in New Hampshire
1,265 posts
Gave thanks: 3
Thanked 27 times
That will not execute your php script for you. I'm pretty sure dumping a php script will run it though. Try this:

Code:
lynx -dump http://www.myweb.com/dir/cron.file.php > /dev/null
__________________
FredFredrickson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old January 27th, 2004, 4:45 AM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jan 2004
1 posts
Gave thanks: 0
Thanked 0 times
Well it depends on if you want to run a remote or a local PHP script. PHP actually has a commandline based interpreter which (I believe) is at /usr/bin/php so you can run a local PHP script like this:

/usr/bin/php /path/to/your/script.php

Of course that may not be what you want. When running locally it does not go through apache and it isn't really considered like a webpage. Use lynx if you want it to act like a webpage.
PsyberS is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On