Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: turning a remote file into a local one



On May 6, 11:15pm, Louis-David Mitterrand wrote:
}
} How could I convert a "ssh root@server tail -F /var/log/syslog" command 
} into a _live_ local file that I could then pass as argument to 
} root-tail? Can zsh do that?

You can try

  root-tail <(ssh root@server tail -F /var/log/syslog)

but I don't promise it will work because the file thus created is not
seekable.
 
} I tried using "=(ssh root@server tail -F /var/log/syslog)" but nothing 
} is displayed.

That attempts to synchronously capture the entire output of the remote
shell in the temporary file before executing the local command to read
the file.  Clearly not what you want.



Messages sorted by: Reverse Date, Date, Thread, Author