How to start a server monitoring perl script and execute the client side code in the same script
I need to launch a server script which will not exit. and after the server is ready I need to start the client code to run some automated tests.
- tried, not work, the server process is not in the background and the client code cannot be execut开发者_StackOverflow社区ed. system ($server &)
- is it possible to use Parallel::ForkManager to handle this, how? all the examples are repetitive tasks, while my case is server and client.
Parallel::ForkManager isn't really designed for this; there are various other distributions for supporting what a server needs to do; Daemon::Daemonize looks like it does the fewest other things besides just running your designated server code in the background.
精彩评论