开发者

SCREEN PHP detached mode with Arguments

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜