We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
10.4.1
8.1.4
Mysql 8
Hi,
https://github.com/laravel/framework/blob/84e7f85769ea268ffec9acab30f7a826223b3d6f/src/Illuminate/Console/Scheduling/CommandBuilder.php#L54C8-L61C11
if (windows_os()) { return 'start /b cmd /v:on /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 &' );
should be
if (windows_os()) { return 'start /b cmd /v:on /c "('.$event->command.' & '.$finished.' ^!ERRORLEVEL^!)'.$redirect.$output.' 2>&1"'; } return $this->ensureCorrectUser($event, '('.$event->command.$redirect.$output.' 2>&1 ; '.$finished.' "$?") ' . $redirect . $output . ' 2>&1 &' );
Run a background scheduled command defined like this:
->runInBackground()->sendOutputTo('/dev/stdout')
and check the logs for
Running scheduled command: ('/usr/local/bin/php' 'artisan' {command signature} > '/dev/stdout' 2>&1 ; '/usr/local/bin/php' 'artisan' schedule:finish "framework/schedule-{random}" "$?") > '/dev/null' 2>&1 &
If the log channel is set to stdout, the command will log nothing.