开发者

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.

  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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜