Class Giscuit_Exec

Description

Program execution Functions

  • copyright: Copyright (c) 2012 VEC

Located in /Exec.php (line 23)


	
			
Method Summary
 static background (string $cmd, [string $stderr = '']) void
 static exec (string $binary, string $arguments, [string $workdir = NULL], [array $descriptorspec = NULL], [string $extension = '']) string
Methods
static background (line 123)

Execute an external program in background

  • access: public
void background (string $cmd, [string $stderr = ''])
  • string $cmd: The command that will be executed
  • string $stderr: STDERR path
static exec (line 38)

Execute an external program

  • return: Output from the result of the command
  • throws: Exception
  • access: public
string exec (string $binary, string $arguments, [string $workdir = NULL], [array $descriptorspec = NULL], [string $extension = ''])
  • string $binary: Command path
  • string $arguments: Command arguments
  • string $workdir: The initial working directory for the command
  • array $descriptorspec: An indexed array where the key represents the descriptor number and the value represents how PHP will pass that descriptor to the child process. 0 is stdin, 1 is stdout, while 2 is stderr.
  • string $extension: Command extension

Documentation generated on Wed, 28 May 2014 08:33:14 +0000 by phpDocumentor 1.4.3