method launch documentation in bbn\Cron\Launcher

Launch a parallel process

function(array $cfg) { if ($this->exe_path) { $cfg['exe_path'] = $this->exe_path; $log = $this->cron->getLogPath($cfg).date('Y-m-d-H-i-s').'.txt'; $cfg['log_file'] = $log; exec(sprintf('php -f router.php %s "%s" > %s 2>&1 &', $this->exe_path, bbn\Str::escapeDquotes(json_encode($cfg)), $log )); return $log; } return null; }

Launch a parallel process BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.