protected function tailRemoteLogs($path, $connection)
    {
        $out = $this->output;

        $lines = $this->option('lines');

        $this->getRemote($connection)->run('cd '.escapeshellarg($path).' && tail -f $(ls -t | head -n 1) -n '.$lines, function ($line) use ($out) {
            $out->write($line);
        });
    }
protected function tailRemoteLogs($path, $connection)
    {
        $out = $this->output;

        $lines = $this->option('lines');

        $this->getRemote($connection)->run('cd '.escapeshellarg($path).' && tail -f $(ls -t | head -n 1) -n '.$lines, function ($line) use ($out) {
            $out->write($line);
        });
    }
protected function tailRemoteLogs ( $ path , $ connection ) { $ out = $ this -> output ; $ lines = $ this -> option ( 'lines' ) ; $ this -> getRemote ( $ connection ) -> run ( 'cd ' . escapeshellarg ( $ path ) . ' && tail -f $(ls -t | head -n 1) -n ' . $ lines , function ( $ line ) use ( $ out ) { $ out -> write ( $ line ) ; } ) ; }
Tail a remote log file at the given path and connection.

@param string $path
@param string $connection

@return void
Tail a remote log file at the given path and connection .