Results 1 to 1 of 1
Hi,
I want to be able to send commands to the Linux server over a specified port to a daemon running on the Linux server that will accept and respond ...
- 02-05-2011 #1Just Joined!
- Join Date
- Feb 2011
- Posts
- 1
Talking to Linux Server via PHP
Hi,
I want to be able to send commands to the Linux server over a specified port to a daemon running on the Linux server that will accept and respond over that port. I've used SSH2 in the past and it's flaky at the best of times.
I want to be able to $_POST a string via cURL to say 192.168.0.2:3333
Then the Linux server daemon would accept the posted string, process it via Perl or Python, then generate a string as a response and post it back to the Apache server to let it know what's going on / response to command etc.
The string will tell the linux server what commands I want it to run like grabbing memory usage, create accounts or setting up FTP accounts and folders etc. I don't want to install apache on the linux server that I am talking to for resource purposes and security.
Where should I start in looking at writing my own Linux daemon so i can register it as a proper service and have it take responses via a port on the Linux box?
Is it possible, or will I in fact need to run a watered down version of Apache to make things easier, or it's just simply impossible/too hard for someone who has never written Perl or Python before to do?
If you have any tips etc I'd really appreciate them


Reply With Quote