|
@@ -77,7 +77,7 @@ discard block |
|
|
block discarded – undo |
|
77
|
77
|
$PORT = @$connectionParameters['port'] ?: 22; |
|
78
|
78
|
$this->guardAgainstInvalidConnectionParameters($connectionParameters); |
|
79
|
79
|
|
|
80
|
|
- $tailCommand = 'ssh '.($connectionParameters['user'] == '' ? '' : $connectionParameters['user'].'@').$connectionParameters['host']." -p " . $PORT . " -T 'cd ".$connectionParameters['logDirectory'].';tail -n '.$this->option('lines')." -f $(ls -t | head -n 1)'"; |
|
|
80
|
+ $tailCommand = 'ssh '.($connectionParameters['user'] == '' ? '' : $connectionParameters['user'].'@').$connectionParameters['host']." -p ".$PORT." -T 'cd ".$connectionParameters['logDirectory'].';tail -n '.$this->option('lines')." -f $(ls -t | head -n 1)'"; |
|
81
|
81
|
|
|
82
|
82
|
$this->info('start tailing latest remote log on host '.$connectionParameters['host'].' (port '.$PORT.') in directory '.$connectionParameters['logDirectory']); |
|
83
|
83
|
|
|
@@ -93,7 +93,7 @@ discard block |
|
|
block discarded – undo |
|
93
|
93
|
{ |
|
94
|
94
|
$output = $this->output; |
|
95
|
95
|
|
|
96
|
|
- (new Process($command))->setTimeout(null)->run(function ($type, $line) use ($output) { |
|
|
96
|
+ (new Process($command))->setTimeout(null)->run(function($type, $line) use ($output) { |
|
97
|
97
|
$output->write($line); |
|
98
|
98
|
}); |
|
99
|
99
|
} |
Please login to merge, or discard this patch.