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.

» Surpass Web Hosting Forums » Choosing Surpass » Signed Up? » Cron job to run php file

Signed Up? If you're new with a question, ask here!

Reply
 
LinkBack Thread Tools Search this Thread
Old November 4th, 2005, 1:41 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2004
7 posts
Gave thanks: 0
Thanked 0 times
Cron job to run php file

Hi!

Can anyone please tell me how do I execute a php file from cron jobs??

let's say that the file is in /www/test/test.php

What do I have to put in cron jobs command line???

Please help
spletna is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 4th, 2005, 4:02 PM   #2 (permalink)
Demontech Hosting CEO
Excelling Contributor
 
demontech's Avatar
 
Joined in Oct 2004
Lives in Stockholm, Sweden
Hosted on PASS39
744 posts
Gave thanks: 0
Thanked 3 times
You shoud put
/home/username/www/test/test.php
__________________
Sincerely,
Demon

High Quality Hosting Service Provided By
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
demontech is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 4th, 2005, 4:17 PM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2004
7 posts
Gave thanks: 0
Thanked 0 times
i have this in my command line but it doesn't work:

php -f /home/username/public_html/script.php
spletna is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 4th, 2005, 4:53 PM   #4 (permalink)
Demontech Hosting CEO
Excelling Contributor
 
demontech's Avatar
 
Joined in Oct 2004
Lives in Stockholm, Sweden
Hosted on PASS39
744 posts
Gave thanks: 0
Thanked 3 times
You must change "username" to your actual username
__________________
Sincerely,
Demon

High Quality Hosting Service Provided By
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
demontech is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 4th, 2005, 5:29 PM   #5 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2004
7 posts
Gave thanks: 0
Thanked 0 times
yes i know...i did this and i replaced script.php with the path to my script. Is it possible that cron doesn't have permission to execute this script?
spletna is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 4th, 2005, 5:46 PM   #6 (permalink)
Demontech Hosting CEO
Excelling Contributor
 
demontech's Avatar
 
Joined in Oct 2004
Lives in Stockholm, Sweden
Hosted on PASS39
744 posts
Gave thanks: 0
Thanked 3 times
I don't think so. But easiest is to contact support at desk.surpasshosting.com
__________________
Sincerely,
Demon

High Quality Hosting Service Provided By
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
demontech is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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