I can run cron jobs manually like this
root@myhosting [~]# sync ; echo 0 > /proc/sys/vm/drop_caches
I can add it in to cPanel like this. This doesnt work because I need root access.
* */4 * * sync; echo 0 > /proc/sys/vm/drop_caches
So that leaves me to add the job using putty logged in as root. The above code doesn’t work in putty. I get command not found
crontab -e. That will put you into an editor where you can add the cron line.
If you end up in an editor you don’t know how to use, you can change it temporarily with
EDITOR=nano crontab -e
Leave a comment
- Cron expression that runs every 5 minutes from 1:30 am – 6:00 am [duplicate]
- Understanding redundant power supplies
- Is there a way for administrators to disable users from installing Firefox extensions?
- Is there research material on NTP accuracy available?
- How to create a limited “domain admin” that does not have access to domain controllers?