From f81eacff9513c928b7eb64570697c6fcf2d0c170 Mon Sep 17 00:00:00 2001 From: Can Tecim Date: Thu, 26 Mar 2015 10:19:34 +0200 Subject: [PATCH 1/2] On windows output should be redirected to NUL --- src/Indatus/Dispatcher/Services/CommandService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Indatus/Dispatcher/Services/CommandService.php b/src/Indatus/Dispatcher/Services/CommandService.php index 2aad7e7..ddb7588 100644 --- a/src/Indatus/Dispatcher/Services/CommandService.php +++ b/src/Indatus/Dispatcher/Services/CommandService.php @@ -212,7 +212,7 @@ public function getRunCommand( array_unshift($commandPieces, 'sudo -u '.$scheduledCommand->user()); } } elseif($platform->isWindows()) { - $commandPieces[] = '> NULL'; //don't show output, errors can be viewed in the Laravel log + $commandPieces[] = '> NUL'; //don't show output, errors can be viewed in the Laravel log //run in background on windows array_unshift($commandPieces, '/B'); From 63fddf03d471e152ab2d093f66e7970e5f9b33d0 Mon Sep 17 00:00:00 2001 From: Can Tecim Date: Thu, 26 Mar 2015 10:31:24 +0200 Subject: [PATCH 2/2] Updatedtests --- tests/Services/TestCommandService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Services/TestCommandService.php b/tests/Services/TestCommandService.php index 7d82b2f..251f627 100644 --- a/tests/Services/TestCommandService.php +++ b/tests/Services/TestCommandService.php @@ -308,7 +308,7 @@ public function testGetRunCommandWindows() base_path().'/artisan', $commandName, '--env='.App::environment(), - '> NULL' + '> NUL' ))); }