|
@@ -84,7 +84,7 @@ discard block |
|
|
block discarded – undo |
|
84
|
84
|
|
|
85
|
85
|
$this->guardAgainstInvalidConnectionParameters($connectionParameters); |
|
86
|
86
|
|
|
87
|
|
- $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)'"; |
|
|
87
|
+ $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)'"; |
|
88
|
88
|
|
|
89
|
89
|
$this->info('start tailing latest remote log on host '.$connectionParameters['host'].' (port '.$port.') in directory '.$connectionParameters['logDirectory']); |
|
90
|
90
|
|
|
@@ -100,7 +100,7 @@ discard block |
|
|
block discarded – undo |
|
100
|
100
|
{ |
|
101
|
101
|
$output = $this->output; |
|
102
|
102
|
|
|
103
|
|
- (new Process($command))->setTimeout(null)->run(function ($type, $line) use ($output) { |
|
|
103
|
+ (new Process($command))->setTimeout(null)->run(function($type, $line) use ($output) { |
|
104
|
104
|
$output->write($line); |
|
105
|
105
|
}); |
|
106
|
106
|
} |
Please login to merge, or discard this patch.