protected $ssh = null;
protected $longArgSeparator = '=';
protected $timeout = 0;
- protected $cpulimit = 0;
protected $sudo = false;
protected $unique = false;
protected $uniqueCommand = null;
$commande = 'timeout ' . $this->getTimeout() . ' ' . $commande;
}
- if ($this->getCPULimit() > 0) {
- $commande = 'cpulimit -l ' . $this->getCPULimit() . ' ' . $commande;
- }
-
if ($this->nohup) {
$commande = 'nohup ' . $commande;
}
$this->unique = $unique;
}
- /**
- * @param int $cpulimit
- */
- public function setCPULimit(int $cpulimit): void
- {
- $this->cpulimit = $cpulimit;
- }
-
- /**
- * @return int
- */
- public function getCPULimit(): int
- {
- return $this->cpulimit;
- }
-
public function ddCommand()
{
$this->_preExecute();