<div dir="ltr">" The 9import tool allows an arbitrary file on a remote system, with the capability of running the Plan 9 exportfs(4) service, to be imported into the local name space. Usually file is a directory, so the complete file tree under the directory is made available."<div><a href="https://9fans.github.io/plan9port/man/man4/9import.html">https://9fans.github.io/plan9port/man/man4/9import.html</a><br><div><br></div><div>9import host1 / /tmp/host1</div><div>9import host2 /tmp/host2</div><div>diff /tmp/host1/a/b/c /tmp/host2/a/b/c</div><div>(or whatever command you want that works with files. No need for stuff like 'rdiff' etc.)</div><div><br></div><div>stuff you take for granted on some systems ...</div></div><div><br></div><div>I have the plan 9 cpu command working (written in Go) and I think it's time I get import working more widely, it's just too useful. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 16, 2024 at 2:01 AM <<a href="mailto:arnold@skeeve.com">arnold@skeeve.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Ralph Corderoy <<a href="mailto:ralph@inputplus.co.uk" target="_blank">ralph@inputplus.co.uk</a>> wrote:<br>
<br>
> > Maybe<br>
> ><br>
> >     diff -u <(ssh host1 cat file1) <(ssh host2 cat file2)<br>
><br>
> This is annoyingly noisy if the remote SSH server has sshd_config(5)'s<br>
> ‘Banner’ set which spews the contents of a file before authentication,<br>
> e.g. the pointless<br>
><br>
> [....]<br>
><br>
> It appears on stderr so doesn't upset the diff but does clutter.<br>
<br>
All true, I didn't think about that.<br>
<br>
> And discarding stderr is too sloppy.<br>
<br>
But the author of a personal script knows his/her remote machines<br>
and can decide if<br>
<br>
     diff -u <(ssh host1 cat file1 2>/dev/null) <(ssh host2 cat file2 2>/dev/null)<br>
<br>
is appropriate or not.<br>
<br>
My main point was that the problem is easily solved with a<br>
few lines of shell, so no need for a utility, especially one<br>
written in C or some other compiled language.<br>
<br>
Thanks,<br>
<br>
Arnold<br>
</blockquote></div>