<div dir="auto">Sshfs<div dir="auto"><br></div><div dir="auto">G</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 16 May 2024, 5:34 pm Ralph Corderoy, <<a href="mailto:ralph@inputplus.co.uk">ralph@inputplus.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I've set ‘mail-followup-to: <a href="mailto:coff@tuhs.org" target="_blank" rel="noreferrer">coff@tuhs.org</a>’.<br>
<br>
> > Every so often I want to compare files on remote machines, but all<br>
> > I can do is to fetch them first (usually into /tmp); I'd like to do<br>
> > something like:<br>
> ><br>
> >     rdiff host1:file1 host2:file2<br>
> ><br>
> > Breathes there such a beast?<br>
<br>
No, nor should there.  It would be slain less it beget rcmp, rcomm,<br>
rpaste, ...<br>
<br>
> > Think of it as an extension to the Unix philosophy of "Everything<br>
> > looks like a file"...<br>
<br>
Then make remote files look local as far as their access is concerned.<br>
Ideally at the system-call level.  Less ideal, at libc.a.<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>
    This computer system is the property of ...<br>
<br>
    Disconnect NOW if you have not been expressly authorised to use this<br>
    system.  Unauthorised use is a criminal offence under the Computer<br>
    Misuse Act 1990.<br>
<br>
    Communications on or through ...uk's computer systems may be<br>
    monitored or recorded to secure effective system operation and for<br>
    other lawful purposes.<br>
<br>
It appears on stderr so doesn't upset the diff but does clutter.<br>
And discarding stderr is too sloppy.<br>
<br>
-- <br>
Cheers, Ralph.<br>
</blockquote></div>