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 [IPv6:2600:3c01:e000:146::1]) by inbox.vuxu.org (Postfix) with ESMTP id D581A20D7B for ; Thu, 16 May 2024 20:51:32 +0200 (CEST) Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 9963543AA6; Fri, 17 May 2024 04:51:28 +1000 (AEST) Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by minnie.tuhs.org (Postfix) with ESMTPS id ADBEC43AA3 for ; Fri, 17 May 2024 04:51:23 +1000 (AEST) Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-5ce2aada130so435752a12.1 for ; Thu, 16 May 2024 11:51:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715885483; x=1716490283; 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=QrPm0DjIfqS03+eOyJIWlRylzizU41di8zQw2V3s1Rs=; b=JIMSbOGdDPQhJQIUARGXbcF2BSQSBZYuGDuTuYS6qoJpu0ajz0HivuHtdmfqCfjkWj 6zny6A/FmfldJSbv6S/ZLJIlYW77Rm0PIR4V9j41MjxWZ5viEpY67ZJ0eMyohR6B3SQ+ PfY4jtRKIXLHgcvHpqnllWZ6KbrYWypmsbQeVBiDoP2YjKTJ9gYZXxEaDfIoiuWAwXph LlXRjFmQ1VoLv3FNgeMOBNHZcEUGHR+6Jpc0kfMRzmIHtzIA7LXBHv2Z/3CPivXMOeCt f0ZM1s+ObzX9f+SsypBUmc5Iw4Qi5DJC/Td/Vuexha7DO2L02xfXpp4kXsrUDvBxwnQp KBHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715885483; x=1716490283; 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=QrPm0DjIfqS03+eOyJIWlRylzizU41di8zQw2V3s1Rs=; b=oPqGMaWn5DkKV6VP+sXZFIYrGOLF9TvkHjO1G5BL+MHPtSEMsviWXNZUBe5igJX0zy sV/+a4BTpoj9ITRCHSV2ZDRA3PZVfUMB8cZHKfMt1wHwVX2nOjsq1jXkrtnKpwwQqOxZ grEEbwkeRiq7igEmN7U29d9eVHzmqSK/nndpiZc9gC8PjvoK/t77zesaFdhWJx++FkFs lRLx7LxKnywz53K7OqVC++TFMnkKnPlusd+L4sgyAvclab6ebPue0XFoZ6Y7XR92A/IT N2tEh1pNzFkRSMxTptulxwQ6p2YhBeTEFIJGekPvXOt9Iei9Y5A2V4T2FO8hx7BqcHGy jaRQ== X-Forwarded-Encrypted: i=1; AJvYcCU7/maIUX1ngQSUiVgogYKCfpiH/YcEZVwImHm4TKULG/gux9sDGXa2/HXHlwk8yJMBxWRSrgMjCThgDzm9 X-Gm-Message-State: AOJu0YxTA/CgpztImDuPDToUW6SR62ZkeQZKBooYK/mGvtNAsf8/jSsq iB6YtPnlNTtVOGznUcfcFIQ5egsp6sNJ6MVGJIdjw0pHcPGFygcpe5DHDUhXebBbvuP5mKuOXPG yUgxPknZMIuf8mK03vAEMvqe10yaeAA== X-Google-Smtp-Source: AGHT+IHaaowHxwjKc7U9bV2moUSaXEQlNX8EtB8JrOxo4R4BQ0kCQxJs/W1cS6Mn9QXDz5DYjwJgh927phtBTo499pE= X-Received: by 2002:a05:6a21:191:b0:1af:d148:b713 with SMTP id adf61e73a8af0-1afde0b5b22mr22307804637.1.1715885482876; Thu, 16 May 2024 11:51:22 -0700 (PDT) MIME-Version: 1.0 References: <202405160651.44G6pi8G018059@freefriends.org> <20240516073351.267351FAE3@orac.inputplus.co.uk> <202405160901.44G91CN0007274@freefriends.org> In-Reply-To: From: Skip Tavakkolian Date: Thu, 16 May 2024 11:51:11 -0700 Message-ID: To: ron minnich Content-Type: multipart/alternative; boundary="000000000000aea937061896b8b8" Message-ID-Hash: 4D7WRJCFNUU4J3FXOSOS44ZSFXGMWISA X-Message-ID-Hash: 4D7WRJCFNUU4J3FXOSOS44ZSFXGMWISA X-MailFrom: fariborz.t@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: --000000000000aea937061896b8b8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable To add to Ron's post, Plan 9's cpu exports the origination's namespace to the destination; by convention it is mounted on /mnt/term at destination. host1% cpu -h host2 host2% diff file2 /mnt/term/usr/me/file1 On Thu, May 16, 2024 at 10:09=E2=80=AFAM ron minnich w= rote: > " 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 >> > --000000000000aea937061896b8b8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
To add to Ron's post, Plan 9's cpu exports the ori= gination's=C2=A0namespace to the destination; by convention it is mount= ed on /mnt/term at destination.

host1% cpu -h host2
<= div>host2% diff file2 /mnt/term/usr/me/file1


On Thu, May 16, 2024 at 10:09=E2=80=AFAM ron minnich <rminnich@gmail.com> wrote:
" The 9i= mport 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 n= ame 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=C2=A0command you want 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 us= eful.=C2=A0

On Thu, May 16, 2024 at 2:01=E2=80=AFAM <arnold@skeeve.com> wrote:
Ralph Corderoy &l= t;ralph@inputplu= s.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
--000000000000aea937061896b8b8--