Web Hosting Talk







View Full Version : Linux Processes Administration System


dEEM
07-18-2005, 01:23 AM
Hi

I'm wondering what language (perl/php??) should i be picking up if i want to develop a simple linux web admin system to manage the processes?

Thanks!

tamasrepus
07-18-2005, 02:36 AM
What exactly do you want your web interface to do? "Manage processes" is a bit unclear...

PlanetWebHost
07-18-2005, 05:36 AM
Hi dEEM,

Are you looking at 'picking up' coding, as in starting to learn?

As far as the Perl vs PHP decision, I prefer PHP, but it is mostly a matter of personal preference.

Here is a pretty good thread about the differences
http://www.webhostingtalk.com/showthread.php?s=&threadid=422224&highlight=php+perl+vs

You might also want to look into BASH scripting.


Although, I must say, if your just getting into it, I'd be careful about starting with a web based script to manage server processes, you could easily create some scary secuirty vulnerbilities.

Check out: http://www.webmin.com/

dEEM
07-18-2005, 06:02 AM
Hi

I would like to know what is going on underneath the system while i'm outside. (A good chance for me to learn somethign) Wouldn't want to risk keying in passwords on public systems.


Bash and PHP would be what i'm going for,

Thanks for your replies

PlanetWebHost
07-18-2005, 06:06 AM
try this dEEM

<?
echo `ps -aux`;
?>

those are tilda's
and it will require safe_mode off

:)

tamasrepus
07-18-2005, 12:59 PM
The point of a program that does what you want (at least from what you've told us, dEEM) seems sort of pointless to me...

But regardless, you probably want to just parse the output of the "ps" command like PlanetWebHost. I guess if you *really* wanted to learn something you could rewrite ps in PHP or Perl, reading all the process information via system APIs (most of which aren't available to PHP) and the /proc filesystem.