zver/shell-screen

该软件包已被弃用,不再维护。未建议替代软件包。
该软件包最新版本(1.0.1)没有可用的许可证信息。

Linux shell "screen" 命令的 PHP 封装

1.0.1 2018-01-04 21:50 UTC

This package is auto-updated.

Last update: 2020-01-16 11:15:48 UTC


README

composer require zver/shell-screen
composer install
php test.php

使用方法

<?php

//run screen with command
\Zver\ShellScreen::run('screenname','sleep 5');
//or commands
\Zver\ShellScreen::run('screenname',['echo "123"','sleep 5']);
//NOTE When command finished execution screen will be automatically closed

//quit screen
//NOTE command maybe still working, screen - terminated anyway

\Zver\ShellScreen::run('screenname');