Sunday, 13 January 2013

How to set up cron job in Ubuntu using Webmin ?

Log in to Webmin at https://x.x.x.x:10000.
Click System
Click Scheduled Cron Jobs
You will see the list of create cron job
Click on Create a new scheduled cron job
You would be asked to fill up cron details
Select … for Execute cron job as and select the user under which the task will execute, e.g. root
The Active? field can be set to No if you don’t want this new job to be actually executed.
Enter the shell commands you want the Cron job to run in the Command field.In command section write the following code.

/usr/bin/wget "http://IP ADDR/PHP_FILE_PATH/FILE_NAME.php"

Anything that you enter into the Input to command field will be fed to the command as input when it is run.
Choose the times and dates on which you want the command to execute under When to execute.
Click the Create button to add the new Cron job.

No comments:

Post a Comment