How to Schedule Commands in Webmin

Occasionally, you may need to execute a command on your server at an odd time. It can be a nuisance to have to wake up at 4 in the morning to run a software update or some other mundane task. You could setup a cron job, but that is usually for recurring tasks and may be a little more involved that simply running a command for a single instance. Fortunately, Webmin has a handy tool that allows you to schedule commands.

To schedule commands in Webmin, do the following:

  1. Login to Webmin (usually http://[ip-or-hostname]:10000)
  2. Under “System”, choose, “Scheduled Commands”
  3. Select a user to run the command
  4. Set the date and time for the command to execute
  5. Choose the directory for executing the command
  6. Type the commands you want to execute (You can enter more than one)
  7. Optionally, choose to have an email sent to you upon completion

That is all it takes. Your command will run once at the time you schedule and never again. It is that easy.