Class SimpleShell

Description

Wrapper for exec() functionality.

Located in /shell_tester.php (line 20)


	
			
Variable Summary
 mixed $_output
Method Summary
 SimpleShell SimpleShell ()
 integer execute (string $command)
 string getOutput ()
 array getOutputAsList ()
Variables
mixed $_output (line 21)
Methods
Constructor SimpleShell (line 27)

Executes the shell comand and stashes the output.

  • access: public
SimpleShell SimpleShell ()
execute (line 39)

Actually runs the command. Does not trap the error stream output as this need PHP 4.3+.

  • return: Exit code.
  • access: public
integer execute (string $command)
  • string $command: The actual command line to run.
getOutput (line 50)

Accessor for the last output.

  • return: Output as text.
  • access: public
string getOutput ()
getOutputAsList (line 59)

Accessor for the last output.

  • return: Output as array of lines.
  • access: public
array getOutputAsList ()

Documentation generated on Sun, 04 May 2008 09:22:08 -0500 by phpDocumentor 1.3.0