Creating a panel for the commands that you execute often
There are some commands that you will find yourself running over and over again. In such cases, you may wish to use Webmin's Custom Commands module to create a convenient control panel from which you can run your command with the click of a button.
Tip
Using this feature, you can also allow some users to run a command as a different user. It's also useful as an alternative to creating scripts and a way to store the syntax of long or complicated commands.
Getting ready
In this recipe, we will create a custom button that uses the drush
command to clear caches of a Drupal site. You will probably want to use a different command, so make a note of its syntax and the directory you want to execute it in before you begin.
How to do it...
In order to create a custom command button, follow these steps:
Navigate to Others | Custom Commands.
Click the link marked Create a new custom command.
Provide a short Description of the command, for instance:
Clear...