By TutorialCow
I am trying to create a crontab to run a php script every minute:
* * * * * http://tutorialcow.com/Resources\%20_Blocked/Session/Change_Salt.php
It doesn’t work, and I can’t figure out how to debug it.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hay, for first sorry, for my very bad english ;)
And to your question:
You must run a client as prefix for your cronjob how:
* * * * * wget http://tutorialcow.com/Resources\%20_Blocked/Session/Change_Salt.php
in my opinion is:
* * * * * php -c /var/www/yourDirectory/Resources_Blocked/Session/Change_Salt.php
the best you can do, if it’s file running on localhost
You need to do something with that http:// address. I think what you want is to execute the PHP file, so I’d recommend
wget gets a URL
-O - redirects the output from a file (~/Change_Salt.php) to stdout
/de v/null throws away the output sent to stdout
If there are errors, you’ll receive an email from cron.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.