开发者

SCREEN PHP detached mode with Arguments

开发者 https://www.devze.com 2023-03-16 06:27 出处:网络
I had a simple php script, which i would like to start from the console in a detached mode with screen.

I had a simple php script, which i would like to start from the console in a detached mode with screen.

my problem is:

the program needs two arguments and the output of this script should be write in a specified f开发者_JAVA技巧ile.

so how to do it like

screen -d -m php bl.php 3 2 > rob.dat

Please help me.


You may start screen first, execute the command and then detach it.

screen -S mySession
php b1.php 3 2 > rob.dat
[Strg]+A, d
0

精彩评论

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

关注公众号