Running job in the background from Perl WITHOUT waiting for return

后端 未结 5 941
盖世英雄少女心
盖世英雄少女心 2020-12-06 07:16

The Disclaimer

First of all, I know this question (or close variations) have been asked a thousand times. I really spent a few hours looking in the obvious and the

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-06 07:46

    Sometimes STDERR and STDOUT can also lock the system... To get both, I use (for most shell environments (bash, csh, etc) that I use...):

    system("php sender.php > /dev/null 2>&1 &");
    

提交回复
热议问题