|
@@ -78,7 +78,7 @@ discard block |
|
|
block discarded – undo |
|
78
|
78
|
$port = $connectionParameters['port']; |
|
79
|
79
|
$this->guardAgainstInvalidConnectionParameters($connectionParameters); |
|
80
|
80
|
|
|
81
|
|
- $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
|
+ $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)'"; |
|
82
|
82
|
|
|
83
|
83
|
$this->info('start tailing latest remote log on host '.$connectionParameters['host'].' (port '.$port.') in directory '.$connectionParameters['logDirectory']); |
|
84
|
84
|
|
|
@@ -94,7 +94,7 @@ discard block |
|
|
block discarded – undo |
|
94
|
94
|
{ |
|
95
|
95
|
$output = $this->output; |
|
96
|
96
|
|
|
97
|
|
- (new Process($command))->setTimeout(null)->run(function ($type, $line) use ($output) { |
|
|
97
|
+ (new Process($command))->setTimeout(null)->run(function($type, $line) use ($output) { |
|
98
|
98
|
$output->write($line); |
|
99
|
99
|
}); |
|
100
|
100
|
} |
Please login to merge, or discard this patch.