Re: Best Approach
| From: | Richard Lynch | Date: | Tue, 22 Jan 2008 20:16:35 +0000 |
| Subject: | Re: Best Approach | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267849@lists.php.net to get a copy of this message | ||
On Mon, January 21, 2008 5:55 pm, Miguel Guirao wrote:
> Is PHP a correct approach to solve this tedious problem?? Can I access
> a
> servers and get the results of a ls command for instance??
I would use PHP, personally, since I know it best.
It might be easiest to install PHP on each box, and have it in a cron
job to check whateve and send the results, perhaps via email, to
somewhere.
Another option would be to right a PHP webpage on each box, and have
the central box just file_get_contents() on each page -- assuming you
can turn on allow_url_fopen on that box.
You *could* go whole hog and use PHP to set up RPC or SOAP on each
box, to allow you to execute the commands, but that would be a lot of
extra work for not much benefit for such a simple task.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?