954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Run a cronjob where the file is inside a password protected directory

Hello,

I am using cpanel standard crontab set-up, I have the path to the file correct but the path leads to a password protected directory ie:

*php /home/example/public_html/admin/script.php*

admin is password protected, how would I allow the crontab access to the script?

Thanks in advance.

liamfriel
Junior Poster
103 posts since Oct 2009
Reputation Points: 13
Solved Threads: 13
 

Have you tried it? I don't believe that Cron will have a problem because the password protection should only apply for access from the web.

chrishea
Nearly a Posting Virtuoso
1,428 posts since Sep 2008
Reputation Points: 210
Solved Threads: 230
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: