开发者

How to start a server monitoring perl script and execute the client side code in the same script

开发者 https://www.devze.com 2023-03-19 07:50 出处:网络
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.

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.

  1. tried, not work, the server process is not in the background and the client code cannot be execut开发者_StackOverflow社区ed. system ($server &)
  2. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号