How to create a cron job
Tutorial Hosting
How to create a custom cron job Log in to your server via ssh using the shell user you wish to create the cron job under. Once logged in, run the following command to open your crontab file: crontab space dash e
You are then asked to choose an editor to view this file. Number six uses the program Nano, which is the easiest option. View the creating and editing a file via ssh article, linked in the description box below, for more details on how to use Nano. You are now presented with this new
Crontab file. At the bottom, add the code for your cron job. This example runs a file named mail.php under the username. This should be the same username that you’re currently logged in under. This example also runs the cron job at 8:13 pm. Now, save the file. You should see the following
Response: crontab installing new crontab. The crontab should now run every day at 8:13 pm.
How to create a custom cron job. Log in to your server via SSH with the shell user under which you want to create the cron job. Once logged in, run the following command to open your crontab file: crontab space dash e You will then be asked to choose an editor to view this file. Number 6 uses the Nano program, which is the simplest option. For more information on using Nano, see the article on creating and editing a file via SSH, linked in the description box below. https://help.dreamhost.com/hc/en-us/articles/115006413028-Creating-and-editing-a-file-via-SSH You will now see this new crontab file. Add below the code for your cron job. This example runs a file called mail.php under the username. This should be the same username you are currently logged in under. This example also runs the cron job at 8:13 p.m. Now save the file. You should see the following response: “Crontab installs new crontab”. The crontab should now run every day at 8:13 p.m. For more helpful tips and tricks, visit dreamhost.com/academy. To open a DreamHost web hosting account, visit dreamhost.com!
#create #cron #job
https://i.ytimg.com/vi/RpgHUuGlG48/hqdefault.jpg