From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from minnie.tuhs.org (minnie.tuhs.org [50.116.15.146]) by inbox.vuxu.org (Postfix) with ESMTP id 328D2276A8 for ; Thu, 16 May 2024 11:00:09 +0200 (CEST) Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 6A0DA43A8D; Thu, 16 May 2024 19:00:01 +1000 (AEST) Received: from mail-oa1-x2f.google.com (mail-oa1-x2f.google.com [IPv6:2001:4860:4864:20::2f]) by minnie.tuhs.org (Postfix) with ESMTPS id 2495F43A8D for ; Thu, 16 May 2024 18:59:54 +1000 (AEST) Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-23e78ef3de7so192164fac.1 for ; Thu, 16 May 2024 01:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=algebras-org.20230601.gappssmtp.com; s=20230601; t=1715849993; x=1716454793; darn=tuhs.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uKDDg9aB17VlqqivQ4nF3fwisewOIcEl3TjsEX8+VXg=; b=S6QKfAJtk3+qBYBfVdaW6rwpkmv/PcmvocuILOPvcyr+t1UKmt5oSTk7WW/2l5pGri lu3dUR6k4jaBSclsN3zObxmvoqW/wKmk3s0TtvCZMxMa/mWTc6b35cgUeR/R1WxcTj3+ lHF9vXmbaKOarxfpYK6F07KDdLadb59qpE3zkiB+FBoIO49H7U4o9FyseayCzfX2OS9l 9fW//wdsFCupWXrHlT9PWkllw0HsV4cW0fiRBXmqqsTEv/Ocly765kuU2t0cLQgXjVQN dPjEIUP1vP6FzmstvjORgssd7A+hhrW0+68u+eQHWP/8snFWvO+cnkxqwYHedJ3bsH8d +U1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715849993; x=1716454793; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uKDDg9aB17VlqqivQ4nF3fwisewOIcEl3TjsEX8+VXg=; b=GcTpcorOlcL0vuj0O8beA086S2GYoi4634aiDUl3MarFRq6eGMouWaU7gPKStXM3fl IpF3ALb4j+DwW/LTxzIHNa8444VFT1d6LImMI5SX78zu2bkShSAApdoW15MKVdiVW4jl bmySqoEXYPLZbI4RsiJS2AwwBIU+mTI6uo6IOyxAOpNHlWURwiNKsvKF77tbNC0hf8Of Fumz0vxrn4jlc798yg+WT+jr23gE4DAY6fzS8UcVxt7nymZBUF2Ad8sQS3TVVhDcQxng O+xoEey7p35mftx84pCH3iCJIkCTyEXaF5sYgBXL3QUwFAm8FC8IX8bSbcXGXKHPooNv SWTw== X-Gm-Message-State: AOJu0YwUTOQ21bNWP9r+arAmWTcaAVYwE5pRTfdHDpdzltZ5o73qPHDm i6iI81Cq+nQByqzUHA9SUoNLJ+uMkAp7GdsnoXklInE7p+64XFORuePfuOuAWzb4qGBWcoIAsGq TtkGoj4E2aoQJnXu8XtyvMubJrr3C4akPR5P1yyhtngeuxAQd X-Google-Smtp-Source: AGHT+IGnv4G9/9/EypKdgMkEp/tA43T2xuDv+Z3MIrc04x76UvbPZNXkInQHYBIq9+6nL77ZeuaKqwUqD/qjgcUz1ds= X-Received: by 2002:a05:6870:1b19:b0:23f:9c2e:8ca2 with SMTP id 586e51a60fabf-24172fd286dmr26744790fac.55.1715849993386; Thu, 16 May 2024 01:59:53 -0700 (PDT) MIME-Version: 1.0 References: <202405160651.44G6pi8G018059@freefriends.org> <20240516073351.267351FAE3@orac.inputplus.co.uk> In-Reply-To: <20240516073351.267351FAE3@orac.inputplus.co.uk> From: George Michaelson Date: Thu, 16 May 2024 18:59:42 +1000 Message-ID: To: Computer Old Farts Followers Content-Type: multipart/alternative; boundary="0000000000005815c206188e75bf" Message-ID-Hash: HJARP2FSAAJH7VBJBEVYBH4CGG2MGT7P X-Message-ID-Hash: HJARP2FSAAJH7VBJBEVYBH4CGG2MGT7P X-MailFrom: ggm@algebras.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: The Eunuchs Hysterical Society X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: Be there a "remote diff" utility? List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --0000000000005815c206188e75bf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sshfs G On Thu, 16 May 2024, 5:34=E2=80=AFpm Ralph Corderoy, wrote: > Hi, > > I've set =E2=80=98mail-followup-to: coff@tuhs.org=E2=80=99. > > > > Every so often I want to compare files on remote machines, but all > > > I can do is to fetch them first (usually into /tmp); I'd like to do > > > something like: > > > > > > rdiff host1:file1 host2:file2 > > > > > > Breathes there such a beast? > > No, nor should there. It would be slain less it beget rcmp, rcomm, > rpaste, ... > > > > Think of it as an extension to the Unix philosophy of "Everything > > > looks like a file"... > > Then make remote files look local as far as their access is concerned. > Ideally at the system-call level. Less ideal, at libc.a. > > > Maybe > > > > diff -u <(ssh host1 cat file1) <(ssh host2 cat file2) > > This is annoyingly noisy if the remote SSH server has sshd_config(5)'s > =E2=80=98Banner=E2=80=99 set which spews the contents of a file before au= thentication, > e.g. the pointless > > This computer system is the property of ... > > Disconnect NOW if you have not been expressly authorised to use this > system. Unauthorised use is a criminal offence under the Computer > Misuse Act 1990. > > Communications on or through ...uk's computer systems may be > monitored or recorded to secure effective system operation and for > other lawful purposes. > > It appears on stderr so doesn't upset the diff but does clutter. > And discarding stderr is too sloppy. > > -- > Cheers, Ralph. > --0000000000005815c206188e75bf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sshfs

G

On Thu, 16 May 2024, 5:34=E2=80=AFpm Ralph Corderoy, <ralph@inputplus.co.uk> wrote:
Hi,

I've set =E2=80=98mail-followup-to: coff@tuhs.org=E2=80=99.

> > Every so often I want to compare files on remote machines, but al= l
> > I can do is to fetch them first (usually into /tmp); I'd like= to do
> > something like:
> >
> >=C2=A0 =C2=A0 =C2=A0rdiff host1:file1 host2:file2
> >
> > Breathes there such a beast?

No, nor should there.=C2=A0 It would be slain less it beget rcmp, rcomm, rpaste, ...

> > Think of it as an extension to the Unix philosophy of "Every= thing
> > looks like a file"...

Then make remote files look local as far as their access is concerned.
Ideally at the system-call level.=C2=A0 Less ideal, at libc.a.

> Maybe
>
>=C2=A0 =C2=A0 =C2=A0diff -u <(ssh host1 cat file1) <(ssh host2 ca= t file2)

This is annoyingly noisy if the remote SSH server has sshd_config(5)'s<= br> =E2=80=98Banner=E2=80=99 set which spews the contents of a file before auth= entication,
e.g. the pointless

=C2=A0 =C2=A0 This computer system is the property of ...

=C2=A0 =C2=A0 Disconnect NOW if you have not been expressly authorised to u= se this
=C2=A0 =C2=A0 system.=C2=A0 Unauthorised use is a criminal offence under th= e Computer
=C2=A0 =C2=A0 Misuse Act 1990.

=C2=A0 =C2=A0 Communications on or through ...uk's computer systems may= be
=C2=A0 =C2=A0 monitored or recorded to secure effective system operation an= d for
=C2=A0 =C2=A0 other lawful purposes.

It appears on stderr so doesn't upset the diff but does clutter.
And discarding stderr is too sloppy.

--
Cheers, Ralph.
--0000000000005815c206188e75bf--