Home > other >  How to implement a "graceful" is in charge of process calls to a remote server?
How to implement a "graceful" is in charge of process calls to a remote server?

Time:11-01

The situation is like this:

The end product of this project is a remote operation test platform, through the TCP transfer a series of test parameters to invoke some corresponding tests, produce test results for remote viewing,

Phase one, there is A test function library interface test program (written in C voice), he can do A test, generate the corresponding test results (such as A method of execution time),

Phase two, there is A shell script, automatic call it repeatedly call test procedure according to the test parameters test, A set of test results (such as 10 times, call A method to get the execution time of each time, each invocation process) is to restart the test procedure, and these results can be data analysis (such as averaging, get A method to perform the average amount of time), the analysis will be called when A python script,

Phase three, to implement A server, receiving the remote request, the client send me the test parameters, such as testing A method for 5 times, then the server according to the parameters of the receiving to call the shell script, pass parameters to the script, the script execution phase 2 work, get A method to perform the average time,

Well, there are stage four, five, is the realization of Web and CGI, but now does not consider,
The question now is, you can see the project, C program to the shell script, shell scripts and the C program (and python), the feeling is very complicated, but if this server to do not block, add a C program, because if adjustable shell script directly through the system method, is to wait for the returned, so consider, there is a special call system method C program to the shell script, and then after a child process server fork exec the C program, so the server itself does not block, feeling that seems to be too tired,

CodePudding user response:

Objective:
Easy to use no BUG
Maintance easy extension

We have to do is

CodePudding user response:

reference 1st floor zongshi_down response:
purpose:
Easy to use no BUG
Maintance easy extension

Line


I was speechless,,,,

CodePudding user response:

Is question is too simple or complicated? Can't be too complicated.
  • Related