FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Cronjobs





Stubru Freak
Sorry for asking about cronjobs again, but I don't understand what the path to the cronjob is relative to.

I have a cronjobs.php file which is in the (ftp) directory /domains/battleschool.frih.net/cronjobs/

This isn't in the public_html folder (just because I don't want it to be run by visitors, obviously).
Is this possible and, if yes, what should I use as the command?

I thought this:

Code:
/usr/bin/php -q /home/stubrufr/domains/battleschool.frih.net/cronjobs/cronjobs.php


But it doesn't work.
DeadX
You can make an public folder that is password protected and use this for example :
Code:
wget -q --http-user 'user' --http-passwd 'password' http://www.xxx.frih.net/cronjobs/cronjob.php


This has the advantage that you can run the script manually in case you urgently want to backup something and don't want to login in the admin panel or the panel is not reachable for some reason
Stubru Freak
I used that but wouldn't the other option be faster?
thnn
I am having the same problem and i refuse to use wget. So bondings do you know whats wrong?
Related topics
CronJobs - jak poprawnie skonfigurowac?
C++ for cronjobs?
Cronjobs - more information
what did i do for suspension of my account??:(
Verifying Cronjobs
Cronjobs
How to park a domain?
DirectAdmin vs CPanel
How to run a cron job on a server
Frihost -> CronJob
CronJobs
Aktywacja!!!
Cron Jobs
Cron jobs - running a php file
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.