Forum Moderators: bakedjake

Message Too Old, No Replies

How to create HTML links to invoke shell commands.

GUI to shell

         

mack

3:30 am on Apr 24, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Not looking for an out of the box solution, just some rough info to get me started. What I am wanting to do is building a lan page that can be used to control shell commands. I know there are simple ways to speed up the process but I want to be able to place them in a protected directory and have access to the gui from pretty much anywhere.

My idea is to have an html page with links. Each link will cause a shell script to execute on the server.

My thinking tells me to use a scripting language, then have the scripts invoke a shell script to activate the actual command.

Can someone give me a few pointers.
Thanks.

Mack.

encyclo

1:39 pm on Apr 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you sure that you couldn't use Webmin? It is more of an "out-of-the-box" solution and it is pretty extendable:

[webmin.com...]

mack

2:09 pm on Apr 24, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Thanks encyclo,

I do use Webmin on the server. And you're right it's good.

What I want is to build a GUI pretty much for one app, withough having access to other system options. I guess Webmin can be set is such a way but it would be good to have a standalone set of scripts.

Mack.

KingMacro

8:52 am on Apr 25, 2005 (gmt 0)

10+ Year Member



if you mean a series of links that simple execute commands such as "stop program" executes "./something -stop" for example then you could do it in php of some other language fairly easilly

in php you could use <?exec("./something -stop");?> and if would execute it

if you want to interface with some running application then the it would get much more complicated