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


Questions about cron jobs and permissions





Grimboy
How would I go about setting the permissions for a script so that it could only be executed by a cron job but not from a user? I am planning on using a php script via php -q /home/serverpath/script/file.php.
kv
All you need to do is password protect the folder which contains your script. You can do it thru cpanel. If user tries to execute it thru http, it asks for password.
Grimboy
That works, thanks.
Related topics
Cron Jobs
propos des cron jobs
[RESOLVED] cron jobs
Cron jobs
I don't have cron jobs enabled ?
cron jobs
Cron Jobs
Cron Jobs
Cron Jobs
Cron jobs - running a php file
Executing automated tasks without using cron jobs
cron jobs?
Problems With Cron Jobs
Cron jobs and PHP?
Has anyone installed Moodle successfully?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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