Ok this is a fun one, not sure which forum to put it in... but since I'm using PHP as the server side scripting I'm thinking this may be a good place to start.
Three machines.
A) Client
B) Webserver
C) Workhorse
The client logs onto the webserver and makes some requests. The webserver processes these requests, decides what to do, and tells the workhorse to get up and do it. Now in reality there are several workhorses, and depending on what choices are made different ones will be activated.
It looks like the activation will be simply calling an executable or batch file with some parameters...
So, does anyone know how I do this? I have full control over B & C, so if it's an issue of setting permissions and the like, I just need to know to do it, not how to do it.
Please don't tell me it can't be done, I already know two ways to do it, but one's ugly and innefficient, and the other one just seems more complex than necessary.
All machines running W2k or WinXP.
Webserver is Apache 2.0.44, but that could be changed if need be.
Solutions I have...
1 (ugly and innefficient): Have a process on the workhorse polling the webserver every X seconds, when it finds information it processes that and executes.
2 (too complex): Write a process which sits on the workhorse and listens for a signal, then runs... (too complex because of writing this process, if one exists already, I'm happy to use it)
Ideas I have...
1: Scheduling something into these machines (I've been told I can use the AT command across machines)
2: Opening a port on the workhorse which I can telnet into and issue commands, i.e. telnet
Thanks for any information you have...
Rob
Three machines.
A) Client
B) Webserver
C) Workhorse
The client logs onto the webserver and makes some requests. The webserver processes these requests, decides what to do, and tells the workhorse to get up and do it. Now in reality there are several workhorses, and depending on what choices are made different ones will be activated.
It looks like the activation will be simply calling an executable or batch file with some parameters...
So, does anyone know how I do this? I have full control over B & C, so if it's an issue of setting permissions and the like, I just need to know to do it, not how to do it.
Please don't tell me it can't be done, I already know two ways to do it, but one's ugly and innefficient, and the other one just seems more complex than necessary.
All machines running W2k or WinXP.
Webserver is Apache 2.0.44, but that could be changed if need be.
Solutions I have...
1 (ugly and innefficient): Have a process on the workhorse polling the webserver every X seconds, when it finds information it processes that and executes.
2 (too complex): Write a process which sits on the workhorse and listens for a signal, then runs... (too complex because of writing this process, if one exists already, I'm happy to use it)
Ideas I have...
1: Scheduling something into these machines (I've been told I can use the AT command across machines)
2: Opening a port on the workhorse which I can telnet into and issue commands, i.e. telnet
Thanks for any information you have...
Rob