Hi,
I need to add a cron task that is supposed to run every 10 minutes.
This is the code I was given by the developers of my software:
/usr/bin/wget --delete-after https://mysite.com/starter.php >/dev/null 2>&1
I’m not sure where to go after I log in to my server. I’d appreciate if someone could give me a step by step instruction. Thanks Tom
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!
Hey friend,
Great question! Figure out how frequently you want it to run and use this: https://crontab-generator.org/
When it gives you the full crontab line entry, run “crontab -e” via SSH and paste it at the bottom of the file, save it and you’re set :)
Jarland
Here’s the command to run to enter the crontab utility where you can copy/paste the cron job:
crontab -u <user> -e
Then paste the command like this:
*/10 * * * * /usr/bin/wget --delete-after https://mysite.com/starter.php >/dev/null 2>&1
Save with the editor and that’s it.
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.