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.4 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, URIBL_SBL_A 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 51C74247A9 for ; Thu, 16 May 2024 19:09:10 +0200 (CEST) Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id CE5B64363F; Fri, 17 May 2024 03:09:03 +1000 (AEST) Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by minnie.tuhs.org (Postfix) with ESMTPS id 309AE435EC for ; Fri, 17 May 2024 03:08:56 +1000 (AEST) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2e6f33150bcso10412401fa.2 for ; Thu, 16 May 2024 10:08:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715879334; x=1716484134; 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=i6UwXTLiyoZJ/nAMZ8tkSHoMLsOpWPJG/lPp/rWCx30=; b=jWWiFssRWy+mZpWdoyLlfsaQQVVcsa9boZgcz3sPztF7Uy/D05CQyuLFxL6sGhv2p5 HNGAbM3e70bb4fKbX/SPq97YCiLpDaf0T6avm+U+xpyPpU4Unz6oLdiyanT178AJ27iG ZK3BOM+LXkca+tTiCN6zdBJKsMIAz3TNtrGyCdhrpyXP6RWuRzTWZZh2wZOHNENIdIxm oxc794m88Yj1BiYFhC80H/w977oLiffP/htgOLEvt+mJRufwOa58ppZ3aQsvmvsL67cg 6qBN+3QhUk2qm7AtTPC0s9qVtdzLOEEaPbF8Jfjfrn9dLdlVTffG8Z0KXsybZKmC/mgy 516A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715879334; x=1716484134; 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=i6UwXTLiyoZJ/nAMZ8tkSHoMLsOpWPJG/lPp/rWCx30=; b=Vg15bmSaEmnGa8DPLfNzf7VzH7QWdEeTw+Ty3yR7+wD/Lj3ic9WSyU0uIa1nAYpd+V cCUnS4rz9qiWxSrDiQ6g/ejUanjI9DOIXBz8wqm51ifTNtgCSKMOKDNCzxe/0aRvbZTD dMPPtXw6QOGh7adyH0n0FYw3VD0UyujzmUk+vF4iWfHMm3ZF4tTBGq0KaYKcqa1TN/Wq 2YcyUZKhjmCfnF41yceXJU1XUEWRzzaPIW7moizU4oFXHqcZlk+U/U9LuZTbEWCmJ5/5 w/ckIAoqAbf+j27mSXhj3CqROIu4ILly6IiXuitcTZqAi9zoFAvgefRxXgB992RS1XZQ Z+tg== X-Gm-Message-State: AOJu0YyF5zONrZ7sIcWryC7zpQNSq/uw+PyQcglKb1sTZ9GWHyddwiKo Gr4DGP0EiQN+M6yZvQh3bhTqk+rYGxs1LRkPFbt9Qe8T2j4maNf78rciUD2jrWKRDn9nL2uHKMO R3BKvCankrG73c90pDwb4rctDjQiPFXgr X-Google-Smtp-Source: AGHT+IFOxAGzf/Xvt2Me1KROj3Pr97Q/1UDunmTrzPkKHQyDv38ZtVhBhda58dI0Oj+o0HhxT/dqJSx/I8KzrQBscwE= X-Received: by 2002:a2e:8045:0:b0:2df:7824:7d32 with SMTP id 38308e7fff4ca-2e5204b1e12mr126579261fa.50.1715879333762; Thu, 16 May 2024 10:08:53 -0700 (PDT) MIME-Version: 1.0 References: <202405160651.44G6pi8G018059@freefriends.org> <20240516073351.267351FAE3@orac.inputplus.co.uk> <202405160901.44G91CN0007274@freefriends.org> In-Reply-To: <202405160901.44G91CN0007274@freefriends.org> From: ron minnich Date: Thu, 16 May 2024 10:08:40 -0700 Message-ID: To: arnold@skeeve.com Content-Type: multipart/alternative; boundary="0000000000002aa0400618954a76" Message-ID-Hash: NFJJXBG5FLCFOU2IWGTDTLFWGO33JXOK X-Message-ID-Hash: NFJJXBG5FLCFOU2IWGTDTLFWGO33JXOK X-MailFrom: rminnich@gmail.com 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: tuhs@tuhs.org 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: --0000000000002aa0400618954a76 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable " 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." https://9fans.github.io/plan9port/man/man4/9import.html 9import host1 / /tmp/host1 9import host2 /tmp/host2 diff /tmp/host1/a/b/c /tmp/host2/a/b/c (or whatever command you want that works with files. No need for stuff like 'rdiff' etc.) stuff you take for granted on some systems ... 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. On Thu, May 16, 2024 at 2:01=E2=80=AFAM wrote: > Ralph Corderoy wrote: > > > > 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 = authentication, > > e.g. the pointless > > > > [....] > > > > It appears on stderr so doesn't upset the diff but does clutter. > > All true, I didn't think about that. > > > And discarding stderr is too sloppy. > > But the author of a personal script knows his/her remote machines > and can decide if > > diff -u <(ssh host1 cat file1 2>/dev/null) <(ssh host2 cat file2 > 2>/dev/null) > > is appropriate or not. > > My main point was that the problem is easily solved with a > few lines of shell, so no need for a utility, especially one > written in C or some other compiled language. > > Thanks, > > Arnold > --0000000000002aa0400618954a76 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
" The 9import tool allows an arbitrary file on a remo= te system, with the capability of running the Plan 9 exportfs(4) service, t= o be imported into the local name space. Usually file is a directory, so th= e complete file tree under the directory is made available."
https://9fan= s.github.io/plan9port/man/man4/9import.html

9imp= ort host1 / /tmp/host1
9import host2 /tmp/host2
diff /t= mp/host1/a/b/c /tmp/host2/a/b/c
(or whatever=C2=A0command you wan= t that works with files. No need for stuff like 'rdiff' etc.)
=

stuff you take for granted on some systems ...

I have the=C2=A0plan 9 cpu command working (written = in Go) and I think it's time I get import working more widely, it's= just too useful.=C2=A0

On Thu, May 16, 2024 at 2:01=E2=80=AFAM <<= a href=3D"mailto:arnold@skeeve.com">arnold@skeeve.com> wrote:
Ralph Corderoy <ralph@inputplus.co.= uk> wrote:

> > Maybe
> >
> >=C2=A0 =C2=A0 =C2=A0diff -u <(ssh host1 cat file1) <(ssh hos= t2 cat file2)
>
> This is annoyingly noisy if the remote SSH server has sshd_config(5)&#= 39;s
> =E2=80=98Banner=E2=80=99 set which spews the contents of a file before= authentication,
> e.g. the pointless
>
> [....]
>
> It appears on stderr so doesn't upset the diff but does clutter.
All true, I didn't think about that.

> And discarding stderr is too sloppy.

But the author of a personal script knows his/her remote machines
and can decide if

=C2=A0 =C2=A0 =C2=A0diff -u <(ssh host1 cat file1 2>/dev/null) <(s= sh host2 cat file2 2>/dev/null)

is appropriate or not.

My main point was that the problem is easily solved with a
few lines of shell, so no need for a utility, especially one
written in C or some other compiled language.

Thanks,

Arnold
--0000000000002aa0400618954a76--