\Pydio\Core\ControllerUnixProcess

Utilitary to launch a process and keep track of it

Summary

Methods
Properties
Constants
__construct()
setPid()
getPid()
status()
start()
stop()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
runCom()
$pid
$command
$output
N/A

Properties

$pid

$pid : string

Type

string

$command

$command : string

Type

string

$output

$output : string

Type

string

Methods

__construct()

__construct(boolean|string  $cl = false, boolean|string  $output = false) 

Parameters

boolean|string $cl

Command to execute

boolean|string $output

A file in which to redirect the output. Send to /dev/null if false.

setPid()

setPid(  $pid) : void

Processid setter

Parameters

$pid

getPid()

getPid() : string

Processid getter

Returns

string

status()

status() : boolean

Try to get status from command line by running "ps -p PID"

Returns

boolean

start()

start() : boolean

Start the command

Returns

boolean

stop()

stop() : boolean

Try to kill the process via command line.

Returns

boolean

runCom()

runCom() : void

Run the command