25.2. Creating a New Command

To create a new command that can be run using a button on the module's main page, follow these steps:

1.
Click on the Create a new custom command link above or below the existing buttons. This will bring up the creation form shown in Figure 25.2.
Figure 25.2. Creating a new custom command.

2.
Enter a short description for your command into the Description field. Whatever text you enter will appear on the command's button on the main page. You can also enter additional text (including HTML tags) into the larger text box below it, to be displayed underneath the button.
3.
In the Command field, enter the shell script or ...

Get Managing Linux® Systems with Webmin™ System Administration and Module Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.