Source for file system.php
Documentation is available at system.php
* Project: eSystem:: The Extended file system<br>
* File: eSystem/system.php
* Sub pcakge of eSystem package. This package includes extended system
* @subpackage eSystem_system
* @author JoungKyun.Kim <http://oops.org>
* @copyright (c) 2018, OOPS.org
* @link http://pear.oops.org/package/KSC5601
* alternative sysem class that based eSystem class
private $tmpname = 'eSystem_system_';
// {{{ function _system ($_cmd, $_out = 0)
* Proto method of eSystem exec functions.
* @param string command that execute an external program and display the output
* @param int whether saving output message on self::$_stdout
function _system ($_cmd, $_out = 0) {
$_cmd = $_cmd . ' 2> ' . $_err . '; echo "RET_VAL:$?"';
$pd = popen ($_cmd, "r");
if ( preg_match ("/RET_VAL:([0-9]+)$/", $_r, $_match) ) {
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
|