From: Joe C. <jo...@sw...> - 2002-02-19 06:18:14
|
This is exceedingly easy to do: Follow the instructions in the Writing Webmin Modules documentation on the Webmin site (i.e. set up the directory with an icon, module.info, etc.). Then create an index.cgi file that either calls your command, or performs the actions you want performed (if more than one command). You can use perl's system() function or backticks to execute system commands. I'm not sure what else to tell you, short of writing it for you. It is a three hour job, even if you don't know perl and have never written a module for Webmin before (it's a 15 minute job if you know perl and have written modules before). Support wrote: > Hello, > > > > I am wanting to build a simple module, in which, a user presses an icon > and and a command is executed on a unix box. > > > > example: (User) Presses "Execute" Icon - pressing "Execute" should be > programmed for directory "/usr/local/execute/" and "./fire" begins > the "Execution" > > > > on a unix box: user simply types: "cd /usr/local/execute/" and "./fire" > > > > Can someone help me with the following above example. > > Thanks in Advance!! -- Joe Cooper <jo...@sw...> http://www.swelltech.com Web Caching Appliances and Support |