/var/www/cobraambalaj/vendor/laravel/framework/src/Illuminate/Console/Scheduling
NameSizeModeActions
CacheAware.php2380644editdlrm
CacheEventMutex.php17890644editdlrm
CacheSchedulingMutex.php17230644editdlrm
CallbackEvent.php43130644editdlrm
CommandBuilder.php22310644editdlrm
Event.php223700644editdlrm
EventMutex.php6850644editdlrm
ManagesFrequencies.php117230644editdlrm
Schedule.php88400644editdlrm
ScheduleFinishCommand.php10040644editdlrm
ScheduleListCommand.php13030644editdlrm
ScheduleRunCommand.php39650644editdlrm
ScheduleTestCommand.php10470644editdlrm
ScheduleWorkCommand.php18350644editdlrm
SchedulingMutex.php6580644editdlrm
Edit: /var/www/cobraambalaj/vendor/laravel/framework/src/Illuminate/Console/Scheduling/CommandBuilder.php (2231B)
runInBackground) { return $this->buildBackgroundCommand($event); } return $this->buildForegroundCommand($event); } /** * Build the command for running the event in the foreground. * * @param \Illuminate\Console\Scheduling\Event $event * @return string */ protected function buildForegroundCommand(Event $event) { $output = ProcessUtils::escapeArgument($event->output); return $this->ensureCorrectUser( $event, $event->command.($event->shouldAppendOutput ? ' >> ' : ' > ').$output.' 2>&1' ); } /** * Build the command for running the event in the background. * * @param \Illuminate\Console\Scheduling\Event $event * @return string */ protected function buildBackgroundCommand(Event $event) { $output = ProcessUtils::escapeArgument($event->output); $redirect = $event->shouldAppendOutput ? ' >> ' : ' > '; $finished = Application::formatCommandString('schedule:finish').' "'.$event->mutexName().'"'; if (windows_os()) { return 'start /b cmd /c "('.$event->command.' & '.$finished.' "%errorlevel%")'.$redirect.$output.' 2>&1"'; } return $this->ensureCorrectUser($event, '('.$event->command.$redirect.$output.' 2>&1 ; '.$finished.' "$?") > ' .ProcessUtils::escapeArgument($event->getDefaultOutput()).' 2>&1 &' ); } /** * Finalize the event's command syntax with the correct user. * * @param \Illuminate\Console\Scheduling\Event $event * @param string $command * @return string */ protected function ensureCorrectUser(Event $event, $command) { return $event->user && ! windows_os() ? 'sudo -u '.$event->user.' -- sh -c \''.$command.'\'' : $command; } }