I have set cronjob for a linux server through cpanel and its working properly. But now I have a linux server which has no cpanel. So for this cpanel, I have to set the cronjob, but without cpanel how to do that please instruct me.
Thanks in advance.
I have set cronjob for a linux server through cpanel and its working properly.
Share
Simply add your crontab to the /etc/cron.d/ directory, eg:
Write this line of text to a file (you can name that file anything you like) and save it to
/etc/cron.d/:0 */4 * * * root /path/to/script.shWould execute
script.shasrootevery 4 hours.