[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

web-gui for scripts



Howdy :-)

I searching for what is the way to create a gui interface for my scripts ("security web-gui").

So, a script could be something like this (execute by root user):

#!/bin/bash
# pr.sh
/etc/postfix reload

So, I must create a gui do "reload postfix service"

I can write a php script like this:

<?php
$output = shell_exec('/root/bin/.pr.sh');
echo "<pre>$output</pre>";
?>

But I'm afraid about security issue I've also ssl on apache web.

What is the best way to create a "web security gui"? Using post/put apache commands? using php code?

Thanks for help!
--
Pol


Reply to: