\App\CoreModule\ModelsCommandManager

Tool for executing commands

Summary

Methods
Properties
Constants
__construct()
commandExist()
send()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(  sudo) : 

Constructor

Parameters

sudo

Is sudo required?

Returns

commandExist()

commandExist(  cmd) : 

Check the existence of a command

Parameters

cmd

Command

Returns

Is the command exists?

send()

send(  cmd,   needSudo = false) : 

Execute shell command and return output

Parameters

cmd

Command to execute

needSudo

Is the command need sudo?

Returns

Output