From nobody Sat Sep 2 07:52:09 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rd6Yr19rbz4sGpm for ; Sat, 2 Sep 2023 07:52:16 +0000 (UTC) (envelope-from andreas.kahari@abc.se) Received: from hekla.abc.se (hekla.abc.se [158.174.61.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rd6Yq1SH9z3RMP for ; Sat, 2 Sep 2023 07:52:14 +0000 (UTC) (envelope-from andreas.kahari@abc.se) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=default; bh=dfkhdbyu05 wX/zSAXmTzNVLnvdbyUFvVVZk+pGjIM2k=; h=in-reply-to:references:subject: cc:to:from:date; d=abc.se; b=lHVaN83VerEqmXI4LxHARhPC3on6lRfQ1QmwjBwmk /UcgqeSllx4lH+yRAXqcqgIW8XxvAq8ANnjHdDGEIL4fC+Z1wCqf8nuJXtSIzRKyY9wV/G MUs5n0c9Bg6LcwGa2CpMa/uPVH6v7s6OZor38w8WPyAsizmJhoxoxZ0AqBRdMDNDIc+Dv0 xtD4SlMV1x7R2k8Yj3Abarf4Qq9zUjgTSa34B90nNa/PbhIKpgqUs/3Dse+bM4ohqvIyig WAhvkvtsyOZ2JTjMwGQE2emKxc2XzICxxvVmUVk8t1bLha7yEBnTmtHplZuORhiPXfR44J DxCCWlBcBzMIM0dK9JwNw== Received: from harpo.local (94-255-242-14.cust.bredband2.com [94.255.242.14]) by hekla.abc.se (OpenSMTPD) with ESMTPSA id 6c16f4d6 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 2 Sep 2023 09:52:11 +0200 (CEST) Date: Sat, 2 Sep 2023 09:52:09 +0200 From: Andreas Kusalananda =?utf-8?B?S8OkaMOkcmk=?= To: Ralf Mardorf Cc: questions@freebsd.org Subject: Re: cut off last lines of a document Message-ID: Mail-Followup-To: Ralf Mardorf , questions@freebsd.org References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> <4062326d85f9e9988b08ab49df4a59e3148fea76.camel@riseup.net> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4062326d85f9e9988b08ab49df4a59e3148fea76.camel@riseup.net> X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8473, ipnet:158.174.0.0/16, country:SE] X-Rspamd-Queue-Id: 4Rd6Yq1SH9z3RMP On Sat, Sep 02, 2023 at 07:09:03AM +0200, Ralf Mardorf wrote: > Hi, > > to write a super portable script the best way would be to check what > operating system is used and to check the version of the used shell. > > case in FreeBSD) command=foo;; *) command=bar;; esac > > When using busybox there are a few extra pitfalls. > > Regards, > Ralf Just a thought: If you need to distribute a script that is supposed to run on different systems, and that contitutes its own "software package" (is an executable, has a manual and possibly some related documentation and examlpes etc.) then you also have the option of using things like GNU auto-tool (autoconf+automake) to generate a portable "configure" script that can be used for setting up the system-dependent parts of the script (or you could roll your own installation script). That way, portability options (and dependencies) are handled once and for all when installing the thing. A script meant for wider consumption than by yourself is like any other software. -- Andreas (Kusalananda) Kähäri SciLifeLab, NBIS, ICM Uppsala University, Sweden . From nobody Sun Sep 3 04:26:34 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RddyD1fkqz4sDWS for ; Sun, 3 Sep 2023 04:26:44 +0000 (UTC) (envelope-from little.analyst892@aceecat.org) Received: from beesty.loosely.org (beesty.loosely.org [IPv6:2600:3c01:e000:4c0::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RddyC2BPgz4PD3 for ; Sun, 3 Sep 2023 04:26:43 +0000 (UTC) (envelope-from little.analyst892@aceecat.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=aceecat.org header.s=rsa header.b=Ely8SaNG; spf=pass (mx1.freebsd.org: domain of little.analyst892@aceecat.org designates 2600:3c01:e000:4c0::2 as permitted sender) smtp.mailfrom=little.analyst892@aceecat.org; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aceecat.org ; s=rsa; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=UpwsvVkxOdmcnMGEQ7uRQUn7oBdEsHom1CugGb2Frcw=; b=Ely8SaNGqr2Woy10APHS1e527m GjPrzxUc+/CjDbS/yWDiwEOwf07cOJcYsch3SoQH2Hvtszz7HLacBTM0UWX9nsQNV6sYhqub/Fw9O 8TLy2qmGkNJMRrw7DZsaB1JLPrxK93RP1DgncJb1Ca7gIJZWrZ7b8h8Dwl12+XGD02WUC+u9HAM8R McxZ8fqSAt7vqQAWGSuFb/XXtUTirdUCKwhUDGWW+m28DwHDMvbVDdtKqFTaznIAdlzp7hTnO/dTI ILymOFB/H8vW8Ev12PUjGA8u4sSoPaBT1NINU6HHJ3p0Pgh3tms9Hce7hjq/x9m/FbQ4HfClmOzaU +gmp3+xw==; Received: from [::1] (helo=beesty ident=itz) by beesty.loosely.org with esmtp (Exim 4.96-10-042a28abf) (envelope-from ) id 1qceh0-0005kX-2y for questions@freebsd.org; Sat, 02 Sep 2023 21:26:34 -0700 Date: Sat, 2 Sep 2023 21:26:34 -0700 From: little.analyst892@aceecat.org To: questions@freebsd.org Subject: Re: cut off last lines of a document Message-ID: Mail-Followup-To: questions@freebsd.org References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.56 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.66)[-0.663]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[aceecat.org:s=rsa]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[questions@freebsd.org]; ASN(0.00)[asn:63949, ipnet:2600:3c01::/32, country:SG]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[aceecat.org:+]; BLOCKLISTDE_FAIL(0.00)[2600:3c01:e000:4c0::2:server fail]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_NO_DN(0.00)[]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[aceecat.org]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4RddyC2BPgz4PD3 On Fri, Sep 01, 2023 at 10:43:46AM +0200, Ede Wolf wrote: > From a file/output with an unknown amount of lines, I would like to filter > out, or not display, the last 3 lines. Is there a way to archive this? Here's my perl solution (which I have had for a while): #! /usr/bin/env perl use strict; use warnings; use Getopt::Long qw(:config require_order); use autodie; $main::char_mode = 0; @main::queue = (); $main::num_dropped = 10; sub read_one { my ($next_input) = @_; our (@queue, $num_dropped); if ($#queue + 1 >= $num_dropped) { my $next_output = shift @queue; print($next_output); } push(@queue, $next_input); } sub usage { print STDERR ("usage: notail [-c|--char_mode] [-n|--num_dropped N] [FILE ..]\n"); exit(2); } sub main { our ($char_mode, $num_dropped); GetOptions ("char_mode" => \$char_mode, "num_dropped=i" => \$num_dropped) or usage(); $/ = \1 if $char_mode; while (<>) { read_one($_); } } exit(main()); 1; __END__ -- Ian From nobody Sun Sep 3 08:05:46 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rdkq96HYCz4s33G for ; Sun, 3 Sep 2023 08:05:57 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Received: from mail.worldserver.net (mail.worldserver.net [217.13.200.36]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.worldserver.net", Issuer "EuropeanSSL Server CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rdkq83x4Pz3Yn8 for ; Sun, 3 Sep 2023 08:05:55 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nebelschwaden.de header.s=1687803001 header.b=i1Ls4pnh; spf=pass (mx1.freebsd.org: domain of listac@nebelschwaden.de designates 217.13.200.36 as permitted sender) smtp.mailfrom=listac@nebelschwaden.de; dmarc=none Received: from postpony.nebelschwaden.de (v22018114346177759.hotsrv.de [194.55.14.20]) (Authenticated sender: sendmail@nebelschwaden.de) by mail.worldserver.net (Postfix) with ESMTPSA id DD0A81E205C for ; Sun, 3 Sep 2023 10:05:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nebelschwaden.de; s=1687803001; t=1693728347; bh=VrPz6cis62guouvnnF+jfU3xt0GoDeCsfhW2TprHCVE=; h=Date:Reply-To:Subject:To:References:From:In-Reply-To:From; b=i1Ls4pnhlLUNrDF87pE0MPK2N9f1GwBmOthbZPADUYzSGsI44w1oPaKrGfsLZ4+VJ WISBDQftRP7/g828JV4+LB6HQqQAanXcGxQCRkCan5tZ/hb/QbzbdcfrUkkidc2iDg cjXoZcObMN8vIBt90DEZGnZEAocHCP6OdX7/UU0xJKSbL129VgpKuEniVeKI5zVZRy N/TYp1sN1oEPIMDw58+LqTLqskgCPsYKKR/pQBSfbCNOB78+RdWDNmJ6CzMqpJv/HP AUEVF+t8+k8zyfD23oxiFER2fakT9NXu37bpMePYjPh0qnf6kyKYbMfovLk+0uXF48 bXkxpGx5WBeqA== Received: from [172.16.37.5] (kaperfahrt.nebelschwaden.de [172.16.37.5]) by postpony.nebelschwaden.de (Postfix) with ESMTP id 0B9B3112585 for ; Sun, 3 Sep 2023 10:05:47 +0200 (CEST) Message-ID: Date: Sun, 3 Sep 2023 10:05:46 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: listac@nebelschwaden.de Subject: Re: cut off last lines of a document To: questions@freebsd.org References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> Content-Language: en-US From: Ede Wolf In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.56 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.97)[-0.966]; R_SPF_ALLOW(-0.20)[+ip4:217.13.200.0/24]; R_DKIM_ALLOW(-0.20)[nebelschwaden.de:s=1687803001]; RCVD_IN_DNSWL_LOW(-0.10)[217.13.200.36:from]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[nebelschwaden.de]; HAS_REPLYTO(0.00)[listac@nebelschwaden.de]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15657, ipnet:217.13.192.0/20, country:DE]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[nebelschwaden.de:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4Rdkq83x4Pz3Yn8 Am 02.09.23 um 05:37 schrieb lain.: > On 2023年09月01日 11:37, the silly Ede Wolf claimed to have said: >> as it again is specific to FreeBSD, so if there is a >> more universal solution, that would be preferred. Even though this of course >> is a FreeBSD mailing list. > > I should point out that FreeBSD coreutils are not GNU coreutils, so > there are going to be differences. > And there are 1000s of different versions of coreutils available, > because they're so easy to re-create, and each one of them work > differently. > I am aware of this, that is why I am so thankfull for the sed and awk solutions provided here. Those are a little bit more handy than a perl script :) Of course there are differences between those tools as well, but so far those seem to have a common playground - the awk as well as sed examples so far are working for gnu as well as [Free|Net]BSD. Not even required to add the --posix flag to gnu sed. From nobody Sun Sep 3 13:06:12 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RdsTs2mDlz4rM8f for ; Sun, 3 Sep 2023 13:06:25 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RdsTr5G3Vz3Tvs for ; Sun, 3 Sep 2023 13:06:24 +0000 (UTC) (envelope-from freebsd@edvax.de) Authentication-Results: mx1.freebsd.org; none Received: from terra.edvax.de ([178.12.38.24]) by mrelayeu.kundenserver.de (mreue009 [213.165.67.97]) with ESMTPSA (Nemesis) id 1Mnac9-1ptrDP0r3N-00jdMx; Sun, 03 Sep 2023 15:06:22 +0200 Received: from r56.edvax.de (r56 [10.200.1.11]) (authenticated bits=0) by terra.edvax.de (8.17.1/8.17.1) with ESMTPA id 383D6H3N046475; Sun, 3 Sep 2023 15:06:17 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 3 Sep 2023 15:06:12 +0200 From: Polytropon To: listac@nebelschwaden.de Cc: questions@freebsd.org Subject: Re: cut off last lines of a document Message-Id: <20230903150612.c88185f3.freebsd@edvax.de> In-Reply-To: References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:3KXGbtMpZPJUcoxBt8bUtlzcS8eg/8fsBzs4vj0ukMmIr5JD+SF 0Oit2B5oygKJgkCEsxalBS3IJmN43M5uvl09M+HtlNHE9ef4E5AksVaRSbn5Vcm5P70ffGd GB4mEg6HZxQsBQuY59mp1vgSMkLMtdxLtSx1900Pf+vUkjXNnrzoqPO4HshOcrLjflaIsnA dYr9DIR5GDyCi70e4v19w== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:wJu0eQQFbfM=;StQ33w8FXF5/pOtXBPQj03tQ0uf MjrM4yr7SzUtZjshKbg24q39eZsTQBFhE4iteBylzTYad6rnSphPUH4v+dSdIXHRQ90Xg4Bhc QtZSVoAExKfMM6DVZO7IjwgJUH/zGCOPjZuFHcIYQieUDkb3qbO/txTXdVOqu0YWMjmqvWEXO O3W0XHWs3GOipctuzTWGfkKE5aGEHsfTLrfuZXPc+ogsTucLq2nqidJUqlXgApFNlY8aGjxd5 KyxYt7BsMeYGiCBIQRPh5zEPwpdsNELse8aGZjVii8OTheleshYRjLmfIKlf70+kinJ0DDp2Q +kiONUdJxMz+65wxa7vM4eavnvMMZCQkVlSsxCPSznp7dPSQqu5hu8gtGRi05fVBM1FWdTcC3 vLtOfOCmMzv7msG54JvQIUGMJoFsUAzXgmo2rF4k+W6CDbDl1q0e+4rWPAn73OjQg9mg/ZTFE tvVScJtfovqNNIXNytg6+LHlWCzeEHkRTrbNW1vacczwHPOHs0WEGBHZIZr+BNSEyL4HqL+PT AROQeTbtK5pJP6bIDjqJ/wF9UtdbBxIXfCa5KvDQbmzRkVZBgMCltO4J0iiTboAT1j1+Uznr/ tE/mcZtvsrwHUAPFKYU9xqi42uxg0R0XGbaqtNpUuWM+KfemTivro+0H7kSWVcrFUcHCQEuyy WagMvSPUPy+QZikg8Tgy8MLlEivAagVdMQvKVeeL+I9nuAurrxWordVjQqH4SSy2oHideyWvA gAP8v/Znuy6W9VWeAm+/MK1xkvJ/dAyA2XQAMEPfxjPcDp04b4cqxnyKKDGZOTGctiMT92gRM eIhMoNOGVOnmhvWHKvyGaqAn0M2JsZnr1rAZ7DZrePXssF4Bz1fqpnfIHp0z4E5BzQSeg90vp kW0q4RdW9+qUdHQ== X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Queue-Id: 4RdsTr5G3Vz3Tvs On Sun, 3 Sep 2023 10:05:46 +0200, Ede Wolf wrote: > Am 02.09.23 um 05:37 schrieb lain.: > > On 2023年09月01日 11:37, the silly Ede Wolf claimed to have said: > >> as it again is specific to FreeBSD, so if there is a > >> more universal solution, that would be preferred. Even though this of course > >> is a FreeBSD mailing list. > > > > I should point out that FreeBSD coreutils are not GNU coreutils, so > > there are going to be differences. > > And there are 1000s of different versions of coreutils available, > > because they're so easy to re-create, and each one of them work > > differently. > > > > I am aware of this, that is why I am so thankfull for the sed and awk > solutions provided here. Those are a little bit more handy than a perl > script :) > > Of course there are differences between those tools as well, but so far > those seem to have a common playground - the awk as well as sed examples > so far are working for gnu as well as [Free|Net]BSD. Not even required > to add the --posix flag to gnu sed. If I may: Everything depends. If your goal is maximum portability, you absolutely need to stay away from GNU extensions. So if your script needs to run on various Linux and UNIX (!) systems, only using the most common tools in their most simple versions is the way to go. In such cases, your script might not be the most optimum one, it might even be a bit inefficient, but in the end, it will run everywhere. It will even run on systems where you are not allowed to (or not able to) install things you might need, such as GNU tools. Assuming that the most recent tools of one Linux distribution are available on all other Linusi as well as on different UNIXes, and intending to use the most modern and fashionable technologies will not cover the specific cases of "other UNIX" you might run into. But in case you can fully control your target environment, there is absolutely nothing wrong in using state-of-the-art script languages if they are available to you (or can easily be made available by simply installing them). Yes, I am old. And stupid. Says the guy who writes stuff in sh, grep, sed, awk, cut, paste and other old-fashioned languages because it _needs_ to run everywhere... ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From nobody Sun Sep 3 13:28:35 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rdszj0tT7z4rTKg for ; Sun, 3 Sep 2023 13:28:49 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Received: from mail.worldserver.net (mail.worldserver.net [217.13.200.36]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.worldserver.net", Issuer "EuropeanSSL Server CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rdszf2n8Gz3Z4p for ; Sun, 3 Sep 2023 13:28:46 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nebelschwaden.de header.s=1687803001 header.b=jFkKCpJK; spf=pass (mx1.freebsd.org: domain of listac@nebelschwaden.de designates 217.13.200.36 as permitted sender) smtp.mailfrom=listac@nebelschwaden.de; dmarc=none Received: from postpony.nebelschwaden.de (v22018114346177759.hotsrv.de [194.55.14.20]) (Authenticated sender: sendmail@nebelschwaden.de) by mail.worldserver.net (Postfix) with ESMTPSA id D91541E1BCC for ; Sun, 3 Sep 2023 15:28:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nebelschwaden.de; s=1687803001; t=1693747718; bh=KyHHVyV6pHb+zRYSsobI6FV9D9JBG9v9/m69pkslL4o=; h=Date:Reply-To:Subject:To:References:From:In-Reply-To:From; b=jFkKCpJKsL0jOYU8aJjTmt8q5QUtl6oi7geGk7ZpOX2Zr3Xe1llPmbP70UMjZ6Lc6 DnJod2FDt9TrFYHyUsh06OcK9JBxrmMknwwFPmwYtTEPc7OsrV9itXq2ejLnICJSYm CsqeysGhf3mib43OqKnRZdnenluKC2jiqfg+EAPn1eWDosVTX+82Pf6/ck/cmjGe/S WzttMDB8zsD8fDNVWen+OA+RcpsNJvx1yQ08E9TO0Q03hPv3xObyK02Lm6H9WnxYz4 pYEtAv2I/wRcM9lCaCG/ZNIxVJLEBPmNIAfJrknrh3qy2o0PC7j3l3UKjKMgAKpDyM y3SIYu9gtc5AA== Received: from [172.16.37.5] (kaperfahrt.nebelschwaden.de [172.16.37.5]) by postpony.nebelschwaden.de (Postfix) with ESMTP id E4D561125C2 for ; Sun, 3 Sep 2023 15:28:35 +0200 (CEST) Message-ID: <5d2d90d1-b842-4a84-846b-dd0c56cd47b4@nebelschwaden.de> Date: Sun, 3 Sep 2023 15:28:35 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: listac@nebelschwaden.de Subject: Re: cut off last lines of a document To: questions@freebsd.org References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> <20230903150612.c88185f3.freebsd@edvax.de> Content-Language: en-US From: Ede Wolf In-Reply-To: <20230903150612.c88185f3.freebsd@edvax.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.57 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.99)[-0.986]; R_SPF_ALLOW(-0.20)[+ip4:217.13.200.0/24]; R_DKIM_ALLOW(-0.20)[nebelschwaden.de:s=1687803001]; RCVD_IN_DNSWL_LOW(-0.10)[217.13.200.36:from]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[nebelschwaden.de]; HAS_REPLYTO(0.00)[listac@nebelschwaden.de]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15657, ipnet:217.13.192.0/20, country:DE]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[nebelschwaden.de:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4Rdszf2n8Gz3Z4p Am 03.09.23 um 15:06 schrieb Polytropon: > On Sun, 3 Sep 2023 10:05:46 +0200, Ede Wolf wrote: >> Am 02.09.23 um 05:37 schrieb lain.: >>> On 2023年09月01日 11:37, the silly Ede Wolf claimed to have said: >>>> as it again is specific to FreeBSD, so if there is a >>>> more universal solution, that would be preferred. Even though this of course >>>> is a FreeBSD mailing list. >>> >>> I should point out that FreeBSD coreutils are not GNU coreutils, so >>> there are going to be differences. >>> And there are 1000s of different versions of coreutils available, >>> because they're so easy to re-create, and each one of them work >>> differently. >>> >> >> I am aware of this, that is why I am so thankfull for the sed and awk >> solutions provided here. Those are a little bit more handy than a perl >> script :) >> >> Of course there are differences between those tools as well, but so far >> those seem to have a common playground - the awk as well as sed examples >> so far are working for gnu as well as [Free|Net]BSD. Not even required >> to add the --posix flag to gnu sed. > > If I may: > > Everything depends. > > If your goal is maximum portability, you absolutely need to > stay away from GNU extensions. So if your script needs to run > on various Linux and UNIX (!) systems, only using the most > common tools in their most simple versions is the way to go. Maye there is a misunderstanding on my side, but that is exactly what I've asked for and what kindly has been provided to me? From nobody Sun Sep 3 21:16:54 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rf4N56qcxz4rNRs for ; Sun, 3 Sep 2023 21:17:09 +0000 (UTC) (envelope-from paulbeard@gmail.com) Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rf4N50FWMz3DrN for ; Sun, 3 Sep 2023 21:17:09 +0000 (UTC) (envelope-from paulbeard@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=XI5Mgvef; spf=pass (mx1.freebsd.org: domain of paulbeard@gmail.com designates 2a00:1450:4864:20::631 as permitted sender) smtp.mailfrom=paulbeard@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-99bf3f59905so126479866b.3 for ; Sun, 03 Sep 2023 14:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693775827; x=1694380627; darn=freebsd.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=9bVDtDWS8tvJJP5+tqHqo8Yk2mmL5gHc90oHebZEA6g=; b=XI5MgvefWwVnlf6fDR60xBiqPy51kyEeGS13wBfZ8lpFcnLX2p3GHZ/b/Z7ivDGQGq ELoNaOf7UApKVb0QOH1mCePflmxmb6ewSVGRQswDjr7k2XF+QcSYzXbrXGO9CLasUW2d R8ufswSkn+Sv7xv7TYD5cgqNfYi8ipVMcv2OFdlB5m+4lYh4c4c52CyxFy3HpCfuQCaO f6tNGJNC7Shc/E7g8KCxVcFkHrg1M/UKfVfRQxa+zZfZOMBRqksnUDuXhlIrcYapS9ZJ 27j8k0b9GlYvVQ9QUruja1nujCf3gi/mjIFjmfJgYw/obMUSV+ALy1X3zlT/DseARpjh gNjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693775827; x=1694380627; h=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=9bVDtDWS8tvJJP5+tqHqo8Yk2mmL5gHc90oHebZEA6g=; b=aGsIqAqqoKOqujHZUP/n9wWPckwbv7EB6qBiaf/mLqr84hnmbdCsQRxmkn1wcFDAHF 5haROs33a3HmRD2SJ+1dF2fBQh5KwHQLhoe9F5EihZuZp4XmcagSIuBzBwUzJv7jFSo1 xqFFjigs2+qELCQBy+Hr8DDSX8yYL/VCCTa3qUrenfrdLwoqY7UYxJzfv+loz5PUhJyw gi2pZCqMB11Fi2BJ1nkfhn0JHLvHzZ2o0xcFivh+ismKH/+Oazd8kCyrQQb05jNS56wq VxvIANbL0sLJi4hk9BzeMhyOqquL90NkM9BygAW6hHnW8cA9uUkPZcdd13dYMPcNpNlt mlrw== X-Gm-Message-State: AOJu0YzVmkiZ07ko4TAAlBN1QhhmiDj8b54Skd5aI+6NrNveKmNCDmxY YoNWqrHlYlwB9C+8ylb6+ql2TC6RK5uAHVViCj5d2OudHCs= X-Google-Smtp-Source: AGHT+IFQxiLiTNJL3lZu/lMYYKiJu7sndWNI2M3OKoqXkzbknOXNbGdqPVUqOEDWKl/O7zFt1iDGX+++Iaerq7sFcOY= X-Received: by 2002:a17:906:5d:b0:9a1:c991:a514 with SMTP id 29-20020a170906005d00b009a1c991a514mr6902384ejg.63.1693775826644; Sun, 03 Sep 2023 14:17:06 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> In-Reply-To: From: paul beard Date: Sun, 3 Sep 2023 14:16:54 -0700 Message-ID: Subject: Re: cut off last lines of a document To: questions@freebsd.org Content-Type: multipart/alternative; boundary="00000000000079f4cc06047aea6e" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.45 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.45)[-0.450]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; BLOCKLISTDE_FAIL(0.00)[2a00:1450:4864:20::631:server fail]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::631:from]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_NONE(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[questions@freebsd.org] X-Rspamd-Queue-Id: 4Rf4N50FWMz3DrN --00000000000079f4cc06047aea6e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This seems to meet the requirements of displaying a file minus the last three lines. It seems portable as well: most unix-ish systems should have these utilities. I tried to avoid any regexes=E2=80=A6as the saying goes, a= dding a regex means now you have *two* problems. At least for me it seems to go that way. export COUNT=3D`wc -l /var/log/messages | tr -d -c '\n[:digit:]'` # get the number of lines in the file: if needed/the filename has digits use 'cut -f1 -d "/" to isolate export WANT=3D`echo "$COUNT-3" | bc ` # subtract 3 (or however many) head -$WANT /var/log/messages # display the remainder. might seem inefficient but when a raspberry =CF=80 is clocked in GHz, who c= ares? On Sat, Sep 2, 2023 at 9:27=E2=80=AFPM wrot= e: > On Fri, Sep 01, 2023 at 10:43:46AM +0200, Ede Wolf wrote: > > > From a file/output with an unknown amount of lines, I would like to > filter > > out, or not display, the last 3 lines. Is there a way to archive this? > > Here's my perl solution (which I have had for a while): > > #! /usr/bin/env perl > > use strict; > use warnings; > use Getopt::Long qw(:config require_order); > use autodie; > > $main::char_mode =3D 0; > @main::queue =3D (); > $main::num_dropped =3D 10; > > sub read_one { > my ($next_input) =3D @_; > our (@queue, $num_dropped); > if ($#queue + 1 >=3D $num_dropped) { > my $next_output =3D shift @queue; > print($next_output); > } > push(@queue, $next_input); > } > > sub usage { > print STDERR ("usage: notail [-c|--char_mode] [-n|--num_dropped N] [FIL= E > ..]\n"); > exit(2); > } > > sub main { > our ($char_mode, $num_dropped); > GetOptions > ("char_mode" =3D> \$char_mode, > "num_dropped=3Di" =3D> \$num_dropped) > or usage(); > $/ =3D \1 if $char_mode; > while (<>) { > read_one($_); > } > } > > exit(main()); > > 1; > __END__ > > > > -- > Ian > > --=20 Paul Beard / www.paulbeard.org/ --00000000000079f4cc06047aea6e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This seems to meet the requirements of displaying a file m= inus the last three=C2=A0lines. It seems portable as well: most unix-ish sy= stems=C2=A0should have these utilities. I tried=C2=A0to avoid any regexes= =E2=80=A6as the saying goes, adding a regex means now you have *two* proble= ms. At least for me it seems to go that way.=C2=A0

expor= t COUNT=3D`wc -l /var/log/messages | tr -d -c '\n[:digit:]'` # get = the number of lines in the file: if needed/the filename has digits=C2=A0use= 'cut -f1 -d "/" to isolate
export WANT=3D`echo "$COU= NT-3" | bc ` # subtract 3 (or however many)
head -$WANT /var/log/me= ssages # display the remainder.=C2=A0

might se= em inefficient=C2=A0but when a raspberry =CF=80 is clocked in GHz, who care= s?=C2=A0

On Sat, Sep 2, 2023 at 9:27=E2=80=AFPM <little.analyst892@aceecat.org> wrot= e:
On Fri, Sep 01, 2023 at 10:43:46AM +0200, Ede = Wolf wrote:

> From a file/output with an unknown amount of lines, I would like to fi= lter
> out, or not display, the last 3 lines. Is there a way to archive this?=

Here's my perl solution (which I have had for a while):

#! /usr/bin/env perl

use strict;
use warnings;
use Getopt::Long qw(:config require_order);
use autodie;

$main::char_mode =3D 0;
@main::queue =3D ();
$main::num_dropped =3D 10;

sub read_one {
=C2=A0 =C2=A0 my ($next_input) =3D @_;
=C2=A0 =C2=A0 our (@queue, $num_dropped);
=C2=A0 =C2=A0 if ($#queue + 1 >=3D $num_dropped) {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 my $next_output =3D shift @queue;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 print($next_output);
=C2=A0 =C2=A0 }
=C2=A0 =C2=A0 push(@queue, $next_input);
}

sub usage {
=C2=A0 print STDERR ("usage: notail [-c|--char_mode] [-n|--num_dropped= N] [FILE ..]\n");
=C2=A0 exit(2);
}

sub main {
=C2=A0 =C2=A0 our ($char_mode, $num_dropped);
=C2=A0 =C2=A0 GetOptions
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ("char_mode" =3D> \$char_mode,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"num_dropped=3Di" =3D> \$num= _dropped)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 or usage();
=C2=A0 =C2=A0 $/ =3D \1 if $char_mode;
=C2=A0 =C2=A0 while (<>) {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 read_one($_);
=C2=A0 =C2=A0 }
}

exit(main());

1;
__END__



--
Ian



--
Pa= ul Beard / www.paul= beard.org/
--00000000000079f4cc06047aea6e-- From nobody Sun Sep 3 23:10:30 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rf6v84SXvz4s8kZ for ; Sun, 3 Sep 2023 23:10:44 +0000 (UTC) (envelope-from freebsd-database@pp.dyndns.biz) Received: from keymaster.home (ns1.xn--wesstrm-f1a.se [IPv6:2a00:d880:5:1b9::8526]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "keymaster.home", Issuer "keymaster.home" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rf6v70nRYz3X2b for ; Sun, 3 Sep 2023 23:10:42 +0000 (UTC) (envelope-from freebsd-database@pp.dyndns.biz) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of freebsd-database@pp.dyndns.biz has no SPF policy when checking 2a00:d880:5:1b9::8526) smtp.mailfrom=freebsd-database@pp.dyndns.biz; dmarc=none Received: from [192.168.254.0] (umbriel.home [192.168.254.0]) by keymaster.home (8.17.1/8.17.1) with ESMTP id 383NAUNC079969 for ; Mon, 4 Sep 2023 01:10:31 +0200 (CEST) (envelope-from freebsd-database@pp.dyndns.biz) Message-ID: <3645ddcd-ede2-2116-3f68-5d3fcb53a643@pp.dyndns.biz> Date: Mon, 4 Sep 2023 01:10:30 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: portmaster and CR Content-Language: en-GB To: Freebsd-questions@freebsd.org References: <20230901180918.137baaf3@happy.dwarf7.net> From: =?UTF-8?Q?Morgan_Wesstr=c3=b6m?= In-Reply-To: <20230901180918.137baaf3@happy.dwarf7.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: / X-Spamd-Result: default: False [0.40 / 15.00]; HFILTER_HELO_IP_A(1.00)[keymaster.home]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.990]; NEURAL_HAM_LONG(-0.89)[-0.885]; NEURAL_HAM_SHORT(-0.74)[-0.740]; R_MIXED_CHARSET(0.71)[subject]; HFILTER_HELO_NORES_A_OR_MX(0.30)[keymaster.home]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; TO_DN_NONE(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[pp.dyndns.biz]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:198203, ipnet:2a00:d880::/32, country:NL]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[Freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; R_SPF_NA(0.00)[no SPF record]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4Rf6v70nRYz3X2b On 2023-09-02 00:09, Vlad Markov wrote: > > I use portmaster to update my ports. Usually there are many ports needing updating. Recently, portmaster requires a carriage return after finishing one update before it will resume. > > I find that annoying. Is there a way to get it to just keep going? I can see stopping on an error but not stopping on success. This is what I use for that exact purpose: portmaster -aydbg Regards Morgan From nobody Mon Sep 4 06:53:58 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RfK9r5YVRz4rmPj for ; Mon, 4 Sep 2023 06:54:08 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Received: from mail.worldserver.net (mail.worldserver.net [217.13.200.36]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.worldserver.net", Issuer "EuropeanSSL Server CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RfK9p0l3bz3SQV for ; Mon, 4 Sep 2023 06:54:05 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nebelschwaden.de header.s=1687803001 header.b=JlmfKQhU; spf=pass (mx1.freebsd.org: domain of listac@nebelschwaden.de designates 217.13.200.36 as permitted sender) smtp.mailfrom=listac@nebelschwaden.de; dmarc=none Received: from postpony.nebelschwaden.de (v22018114346177759.hotsrv.de [194.55.14.20]) (Authenticated sender: sendmail@nebelschwaden.de) by mail.worldserver.net (Postfix) with ESMTPSA id 251441E0FAF for ; Mon, 4 Sep 2023 08:53:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nebelschwaden.de; s=1687803001; t=1693810439; bh=h5/4Dw3ExQ/atP6MHH3nfy5uxXCUADcKywlnWZ42H58=; h=Date:Reply-To:Subject:To:References:From:In-Reply-To:From; b=JlmfKQhUUyywe6VAJEFu7Lef/s8d2iFeh8Eaww2Lo4u1IMyKvX3cJugmvd5Qj12F5 Pjka1FIxHb88TDfDNnrloMm4lOaq9o9MYbbSen70c0Bahx3LbAsPBvG8S0sO3oL6J9 ybhqhUv3AaYshp91DwyNlHOlJRSDYEiODaM7WtB2avblalsVO3/Wa7plZMo/mJ8CWe drcDGZcC3rG67JPzR1f70RO5CWoBkMB4zRY/soo56GEBg26AWczpr1hf2+yDCgN0xt ARL83dwuA9gw/aAyDq51GGJjXKsmOEpj7B+gfyZjSySZH9nrdmSTiTCCUEolBzvwYl pvOjN3IIXUJHg== Received: from [172.16.37.5] (kaperfahrt.nebelschwaden.de [172.16.37.5]) by postpony.nebelschwaden.de (Postfix) with ESMTP id 5C8CD112643 for ; Mon, 4 Sep 2023 08:53:58 +0200 (CEST) Message-ID: Date: Mon, 4 Sep 2023 08:53:58 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: listac@nebelschwaden.de Subject: Re: cut off last lines of a document To: questions@freebsd.org References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> Content-Language: en-US From: Ede Wolf In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.59 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; R_SPF_ALLOW(-0.20)[+ip4:217.13.200.0/24]; R_DKIM_ALLOW(-0.20)[nebelschwaden.de:s=1687803001]; RCVD_IN_DNSWL_LOW(-0.10)[217.13.200.36:from]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[nebelschwaden.de]; HAS_REPLYTO(0.00)[listac@nebelschwaden.de]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15657, ipnet:217.13.192.0/20, country:DE]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[nebelschwaden.de:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4RfK9p0l3bz3SQV Am 03.09.23 um 23:16 schrieb paul beard: > This seems to meet the requirements of displaying a file minus the last > three lines. It seems portable as well: most unix-ish systems should > have these utilities. I tried to avoid any regexes…as the saying goes, > adding a regex means now you have *two* problems. At least for me it > seems to go that way. > > export COUNT=`wc -l /var/log/messages | tr -d -c '\n[:digit:]'` # get > the number of lines in the file: if needed/the filename has digits use > 'cut -f1 -d "/" to isolate > export WANT=`echo "$COUNT-3" | bc ` # subtract 3 (or however many) > head -$WANT /var/log/messages # display the remainder. > > might seem inefficient but when a raspberry π is clocked in GHz, who cares? Thanks, but the problem I currently see here, as with the suggestion of Archimedes earlier, I am currently not easily able to convert this into a feed from stdin. May just be my lack of shell, of course. Think rather: cat | head .. instead of head Where cat in this case is just a symbolic placeholder for any other command before the pipe. So I need to process from stdin, not from a file. Should have made this more clear, I suppose. The awk and sed solutions provided here work fine. From nobody Mon Sep 4 07:32:08 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RfL1t1QVQz4ryV4 for ; Mon, 4 Sep 2023 07:32:18 +0000 (UTC) (envelope-from 87f918bc367b9c42361ed314d25d7d77@ludikovsky.name) Received: from ludikovsky.name (ludikovsky.name [158.255.212.178]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RfL1s12gdz3ZlN for ; Mon, 4 Sep 2023 07:32:17 +0000 (UTC) (envelope-from 87f918bc367b9c42361ed314d25d7d77@ludikovsky.name) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of 87f918bc367b9c42361ed314d25d7d77@ludikovsky.name designates 158.255.212.178 as permitted sender) smtp.mailfrom=87f918bc367b9c42361ed314d25d7d77@ludikovsky.name; dmarc=pass (policy=none) header.from=ludikovsky.name Received: from [IPV6:2a02:1748:f39f:7f81:cd57:45a6:c2e0:e79d] (unknown [IPv6:2a02:1748:f39f:7f81:cd57:45a6:c2e0:e79d]) by ludikovsky.name (Postfix) with ESMTPSA id 4780942EB for ; Mon, 4 Sep 2023 07:32:09 +0000 (UTC) Message-ID: Date: Mon, 4 Sep 2023 09:32:08 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Language: en-US To: questions@freebsd.org From: Peter Ludikovsky <87f918bc367b9c42361ed314d25d7d77@ludikovsky.name> Subject: Issues with py39-openssl Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.64 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.94)[-0.942]; DMARC_POLICY_ALLOW(-0.50)[ludikovsky.name,none]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; ASN(0.00)[asn:57169, ipnet:158.255.212.0/24, country:AT]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4RfL1s12gdz3ZlN Hi! Equal parts question and solution. I've encountered an issue with iocage being unable to do anything, only throwing a list of Python execptions ending in AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms' If you encounter this error with iocage, certbot, … the reason is that py39-cryptography was updated, but the dependency py39-openssl wasn't. [1]. The linked thread also contains a workaround. For the question part: anyone got insight as to how this happened? AFAIK the cryptography module should require an appropriate pyOpenSSL version to be present when the package is built/installed. Regards, /peter [1] https://forums.freebsd.org/threads/certbot-error-module-lib-has-no-attribute-openssl_add_all_algorithms.90150/#post-620925 From nobody Mon Sep 4 14:39:25 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RfWVm44Hvz4rtPW for ; Mon, 4 Sep 2023 14:39:28 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RfWVm3f7fz3Csh; Mon, 4 Sep 2023 14:39:28 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693838368; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8l/KuBav7NLVAvkvXD9NKU6gJCU0IlxTZtY2+KL9NJs=; b=uDi6hMO32HRNQE7r8CF4/bftJDZVpSXIfDCjoVU0RqkDALk/GOK+lNX0OfCSL0R1jXi4gL ammdMIBpQhIBMJRqPLr17aisGoOPn8XPaFRZy7OTFn/fxA45X3TAOrGQNe+CU64mfzLrHp VkyK5GX3p2U9EED7m0Fo2LwmZSTAQ+3cQL9mn5DhHLZL63Shrv/0oe4DuFYPAuE4WDs1u7 EiSGZestyPbeRgjITLCA7vdk06qXwuRblGiHqzy4ar8LySr7Z6JrnCzZl3kXxWYCy+aRHp 8sz1Bweprl3GhKKL8kLCtD4ayVFdKgycb9SLVKrJvVBZhmdTXxxIyKksUSbGVg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693838368; a=rsa-sha256; cv=none; b=D6qoQsxIdMLXssmLdlOmINmwp3ALpACarqwEgpzzWDM5+Urk612VDB/R9D/8wn/tByTEer y2SCCst+nFROQKlad0RVtO+NUMzTfrvmjZ5K884XxQlbZm9Aq6fTVnpK1sVHvUMH3YSFk7 kQPDgi1mwIeHdCbaPIrk7rTo/cvMCFUpsp+36eHTl7z+LUmFeLdOspxpRpH1OWlMGEjgVO MLTU+s4jtxDfIp/K772B+sdIHDQ35U8n4Co6qRKSSbW3bWOGSqFePhbhRtyEWG5woLjaKz wtLshZAGd1ohU7Pfz7H39nFOLmRikpvZzZPCaoweduFV4aOqlWF+g7LvMe7L1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693838368; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8l/KuBav7NLVAvkvXD9NKU6gJCU0IlxTZtY2+KL9NJs=; b=bZPRBSSW5a/8JHqY22WnC2TrEWHPybys1KgCfzwdxh5iy1I9+sBqUyV+Ka9kCcwOlY1J+S 8GgQAeT8FOByZKlbUqOQHgzzW8ay+OVvmyuWckHLR+QUu8tS2ZPKwkRShOW/uxmyuP50j9 5MA2vp+BhNv5DVqCQT63x8HtTCZL6dqz26q0dKyGN61vOUajSG0Ud9OsKay4Sa7ODoh6r1 NPrSkRbBb/PmRN9XhFEAbnYZ34MltcLRz11U+L8Wx9AwiswuN+yqoOhabTPPgbh5dD4IKM dLjiPeTHP0esWuqKjd8Y+QCKfeom5nn8mAKk55Ztt3yALow98WmE7awBx5251Q== Received: from ltc.des.no (ti0187a400-1976.bb.online.no [85.166.95.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RfWVm1v1wzqpB; Mon, 4 Sep 2023 14:39:28 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.no (Postfix, from userid 1001) id D14244E2B5; Mon, 4 Sep 2023 16:39:25 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Ede Wolf Cc: questions@freebsd.org Subject: Re: cut off last lines of a document In-Reply-To: (Ede Wolf's message of "Mon, 4 Sep 2023 08:53:58 +0200") References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Mon, 04 Sep 2023 16:39:25 +0200 Message-ID: <86edjet336.fsf@ltc.des.no> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ede Wolf writes: > Am 03.09.23 um 23:16 schrieb paul beard: > > export COUNT=3D`wc -l /var/log/messages | tr -d -c '\n[:digit:]'` # > > export WANT=3D`echo "$COUNT-3" | bc ` # subtract 3 (or however many) > > head -$WANT /var/log/messages # display the remainder. 1) there is no need to export the variables 2) don't use backticks, use $() instead 3) if you use 'wc -l Thanks, but the problem I currently see here, as with the suggestion > of Archimedes earlier, I am currently not easily able to convert this > into a feed from stdin. Pipe-friendly pure shell solution: drop_last_three() { local a b c d read a read b read c while read d ; do echo "$a" a=3D"$b" b=3D"$c" c=3D"$d" done } DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org From nobody Mon Sep 4 14:54:14 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RfWqr4C6lz4ryY3 for ; Mon, 4 Sep 2023 14:54:16 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RfWqr3jV1z3J7W; Mon, 4 Sep 2023 14:54:16 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693839256; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=inPY0KWPQV3yX7BlNR+jFROqPUKpyIGcJ2XvG46fvWE=; b=bzCVOS9ocY6KNSRW/oWvDk302lCNfbABENUY3TaD6DpynROoNCVxr+2ZhNlRRHi2/tAnqA DASDYBfIun8X1FbjjJmgvaVCU9+i7ZqGDZyDvp9XrbDPDAH8iSem4+HIbKixUs6CJpeb3R E6OX90c9FeNrGW7Cm0I9/xdGYT5eMyNCdzBUnGknoX3NuoQBKyv4bEzJyPkPcsuBth7Po9 HaO4SZKZcCaD7tm/beyCeyu7po9v1vh7D5x7t+BwpcCoHwj4rMZ5RHkKk8cWP4bFvl3r4U G2Y3jYgOcoV9hNlZGHPV+MT27GrSQ0YejhFEeqlFQ3wLrB5OZYROIl00n8777A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693839256; a=rsa-sha256; cv=none; b=EY3xlSebN6ma2vSyjwX+ZwqR8kG8uo8zv1bLK9algOvbATy29/s5IzMUNUtCXwQNvbauTg qjx/O4y4ADozMaz0aFDnQvS/28mH633Oi9gUkNeTUOmAERFyOP0J8Lj+oaCV1ouBpPSOyt xnxfoSPY1PqUK/ef/hquHvR0e9h0EyPTa0gvHWUZx5f3Jft6Jca9VQ8qoNplC7yezxySjy n+HLCkEdPmAXmdzRUlXfcXQvYVZgqJxBPD2TEsAZOYLsqHZ6YtX7Hf/C6uAA3dcJNYAv74 4KdVB9jEvh691V4SHYusSrC8yRPv+Ia2Zd3D071MGuOMSI/uP/UUzNeXC7GgEg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693839256; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=inPY0KWPQV3yX7BlNR+jFROqPUKpyIGcJ2XvG46fvWE=; b=bg9ybb+YtxCjVAbn1owJwfSdRPnlM/LMcUy5t95zJiPAoHhETkO/oCu7vA7btBklC9folt iBl6tVv+HNTQOgzA0gEFk14Ril63cuWnDxQ1OybtzDu1ApwP9HK8ToQBxuKPNcKN++Drhi 3VLxQ4IR7NX6bpowwK350tjCKXJ84cf6AE4xsQ2y2fyEt32mmR336BSbGrJtytw3Mhr08h jIIs380hUlAxM6ZmnGro4gh97pxdoai9X4KXgHON7w4zfngRoHh9gyr76pwtFIrp1IIQ9r jCgVGOoLyc+oO7e7Wd2Pgx5cfknUZB4PCbk+H4+04sNoEZoLDfGmcVDrjZI+ew== Received: from ltc.des.no (unknown [IPv6:2001:4647:d671:0:36e8:94ff:feca:9834]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RfWqr1xGhzqts; Mon, 4 Sep 2023 14:54:16 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.no (Postfix, from userid 1001) id E01254CCD1; Mon, 4 Sep 2023 16:54:14 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Ede Wolf Cc: questions@freebsd.org Subject: Re: cut off last lines of a document In-Reply-To: ("Andreas Kusalananda =?utf-8?B?S8OkaMOkcmkiJ3M=?= message of "Mon, 4 Sep 2023 16:50:24 +0200") References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> <86edjet336.fsf@ltc.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Mon, 04 Sep 2023 16:54:14 +0200 Message-ID: <865y4qt2eh.fsf@ltc.des.no> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "Andreas Kusalananda K=C3=A4h=C3=A4ri" write= s: > Note how this will handle backslash-escaped newlines in the input, and > that, depending on the shell and its configuration, the "echo" call may > or may not expand backslash-escaped characters in the input (e.g. "\n" > and "\t"). The "echo" may also interpret the string "-n" as an option > it occurs on its own line. You may also lose flanking whitespace. Right. If your shell is broken, use read -r and replace echo with printf "%s\n". Or don't use a broken shell. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org From nobody Mon Sep 4 15:22:32 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RfXSh3Mjvz4s7LK for ; Mon, 4 Sep 2023 15:22:44 +0000 (UTC) (envelope-from andreas.kahari@abc.se) Received: from hekla.abc.se (hekla.abc.se [158.174.61.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RfXSg39Sxz3NZT for ; Mon, 4 Sep 2023 15:22:43 +0000 (UTC) (envelope-from andreas.kahari@abc.se) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=abc.se header.s=default header.b=e1tytBTJ; spf=pass (mx1.freebsd.org: domain of andreas.kahari@abc.se designates 158.174.61.227 as permitted sender) smtp.mailfrom=andreas.kahari@abc.se; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=default; bh=oEZsu0WI6d /uHRgBtuCh2/E9ts3mAjvf0OQiWzYxfzI=; h=in-reply-to:references:subject: to:from:date; d=abc.se; b=e1tytBTJB20ySyaKJMkdGeJFQw11hiXPMmE/PT/xaR4r NV1xxG96iVgg4c8ixGUT0NmKO4SZBRoBQvHJiugqG+eKWizxHIQ2iha4As2WW1S59zdwFr XsAIT/oKUAiMBvExe7ZERFGZiNm9eRTCpVzCD/CZNlocuA2wcp/DjgQJbBFk9yDvTYtvK0 KQmbUTUKS3ZcZ4vibrNaREWco/GURIlEgOkB1vvLYVtkyZleJ6mNwEP31lxSxeHR4JXVeU pYe5Cywm1K2k+qMXJJtIGs/mS9rqav6grH2R7jiAYHBn2aK4tg7+UmU+KuGhj66MKxxzl3 sXfyeRXmKYgtdCzAAA== Received: from harpo.local (94-255-242-14.cust.bredband2.com [94.255.242.14]) by hekla.abc.se (OpenSMTPD) with ESMTPSA id 6c210e42 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Mon, 4 Sep 2023 17:22:34 +0200 (CEST) Date: Mon, 4 Sep 2023 17:22:32 +0200 From: Andreas Kusalananda =?utf-8?B?S8OkaMOkcmk=?= To: questions@freebsd.org Subject: Re: cut off last lines of a document Message-ID: Mail-Followup-To: questions@freebsd.org References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> <86edjet336.fsf@ltc.des.no> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86edjet336.fsf@ltc.des.no> X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.55 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.994]; NEURAL_HAM_SHORT(-0.99)[-0.986]; R_MIXED_CHARSET(0.83)[subject]; R_DKIM_ALLOW(-0.20)[abc.se:s=default]; R_SPF_ALLOW(-0.20)[+ip4:158.174.61.227]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8473, ipnet:158.174.0.0/16, country:SE]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[abc.se:+]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[abc.se]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4RfXSg39Sxz3NZT Sorry, this is resent due to a misconfiguration of my mail client. On Mon, Sep 04, 2023 at 04:39:25PM +0200, Dag-Erling Smørgrav wrote: > Ede Wolf writes: > > Am 03.09.23 um 23:16 schrieb paul beard: > > > export COUNT=`wc -l /var/log/messages | tr -d -c '\n[:digit:]'` # > > > export WANT=`echo "$COUNT-3" | bc ` # subtract 3 (or however many) > > > head -$WANT /var/log/messages # display the remainder. > > 1) there is no need to export the variables > 2) don't use backticks, use $() instead > 3) if you use 'wc -l 3b) alternatively, use read: wc -l foo | read COUNT FILENAME > 4) the shell can do the math for you: 'head -$((COUNT-3)) foo' > > > Thanks, but the problem I currently see here, as with the suggestion > > of Archimedes earlier, I am currently not easily able to convert this > > into a feed from stdin. > > Pipe-friendly pure shell solution: > > drop_last_three() { > local a b c d > read a > read b > read c > while read d ; do > echo "$a" > a="$b" > b="$c" > c="$d" > done > } > > DES > -- > Dag-Erling Smørgrav - des@FreeBSD.org Note how this will handle backslash-escaped newlines in the input, and that, depending on the shell and its configuration, the "echo" call may or may not expand backslash-escaped characters in the input (e.g. "\n" and "\t"). The "echo" may also interpret the string "-n" as an option it occurs on its own line. You may also lose flanking whitespace. -- Andreas (Kusalananda) Kähäri SciLifeLab, NBIS, ICM Uppsala University, Sweden . From nobody Mon Sep 4 15:24:00 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RfXVD47PTz4s7W8 for ; Mon, 4 Sep 2023 15:24:04 +0000 (UTC) (envelope-from andreas.kahari@abc.se) Received: from hekla.abc.se (hekla.abc.se [158.174.61.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RfXVC4FLhz3PjD for ; Mon, 4 Sep 2023 15:24:03 +0000 (UTC) (envelope-from andreas.kahari@abc.se) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=abc.se header.s=default header.b=SmTzmJqJ; spf=pass (mx1.freebsd.org: domain of andreas.kahari@abc.se designates 158.174.61.227 as permitted sender) smtp.mailfrom=andreas.kahari@abc.se; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=default; bh=/Xho9hK8dZ BuKLz30r+ztn3XlXPTfxYSUdyyhHxhak4=; h=in-reply-to:references:subject: to:from:date; d=abc.se; b=SmTzmJqJGYmTo5k/c/JQNxwMrvofbyuYXdp4IWOEEJgn mQ4uIEyP9nWI1KUhynHQQi7Rhxp1A+Pq4cz9PwynIp692YifBQ3AdeK0kN/WcBMEFU9teM feChs+0T2Xzueot7x51kqLgOvWqVX2PYikQdWetySfgJa1wbNNRcXWHh2OFz67k1epbnCS SkKvK0LBIP4v1TDQBTOKIcn9ggvs2a3zc+ccSOX5Zn/2XK5vid98rm1yDb6vNubclen41K dpbTugXflX7ov2PD4oduSuGOgPf2/naMlzbtJ2aSYG+/viTYWyOKSPC7cwHxPwQyCyaZ7a aQFNM0gKyLP2DwZj1A== Received: from harpo.local (94-255-242-14.cust.bredband2.com [94.255.242.14]) by hekla.abc.se (OpenSMTPD) with ESMTPSA id ad969722 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Mon, 4 Sep 2023 17:24:01 +0200 (CEST) Date: Mon, 4 Sep 2023 17:24:00 +0200 From: Andreas Kusalananda =?utf-8?B?S8OkaMOkcmk=?= Sender: owner-freebsd-questions@freebsd.org To: questions@freebsd.org Subject: Re: cut off last lines of a document Message-ID: Mail-Followup-To: questions@freebsd.org References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> <86edjet336.fsf@ltc.des.no> <865y4qt2eh.fsf@ltc.des.no> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <865y4qt2eh.fsf@ltc.des.no> X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.54 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.992]; NEURAL_HAM_SHORT(-0.99)[-0.986]; R_MIXED_CHARSET(0.83)[subject]; R_DKIM_ALLOW(-0.20)[abc.se:s=default]; R_SPF_ALLOW(-0.20)[+ip4:158.174.61.227:c]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8473, ipnet:158.174.0.0/16, country:SE]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[abc.se:+]; TO_DN_NONE(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[abc.se]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4RfXVC4FLhz3PjD Sorry, this is resent due to a misconfiguration of my mail client. On Mon, Sep 04, 2023 at 04:54:14PM +0200, Dag-Erling Smørgrav wrote: > "Andreas Kusalananda Kähäri" writes: > > Note how this will handle backslash-escaped newlines in the input, and > > that, depending on the shell and its configuration, the "echo" call may > > or may not expand backslash-escaped characters in the input (e.g. "\n" > > and "\t"). The "echo" may also interpret the string "-n" as an option > > it occurs on its own line. You may also lose flanking whitespace. > > Right. If your shell is broken, use read -r and replace echo with > printf "%s\n". Or don't use a broken shell. > > DES > -- > Dag-Erling Smørgrav - des@FreeBSD.org Don't forget to also set IFS to an empty string. Apart from the issue that comes from having a too feature-full "echo" implementation, the rest of the issues are due to the POSIX specifications of the "read" utility. If POSIX is broken or not is a discussion I'm not getting into. -- Andreas (Kusalananda) Kähäri SciLifeLab, NBIS, ICM Uppsala University, Sweden . From nobody Mon Sep 4 15:35:37 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RfXlh6BwPz4sKDW for ; Mon, 4 Sep 2023 15:35:44 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx0.riseup.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RfXlg4Whpz3VvS for ; Mon, 4 Sep 2023 15:35:43 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=riseup.net header.s=squak header.b=GfpFbX6V; spf=pass (mx1.freebsd.org: domain of ralf-mardorf@riseup.net designates 198.252.153.6 as permitted sender) smtp.mailfrom=ralf-mardorf@riseup.net; dmarc=pass (policy=none) header.from=riseup.net Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4RfXld3KQVz9t83 for ; Mon, 4 Sep 2023 15:35:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1693841741; bh=3j0t6+mw9kdS0bUAX9L4LVePr0UOfcsU3TGhn/PZO6s=; h=Subject:From:To:Date:In-Reply-To:References:From; b=GfpFbX6VWH+VSFw/uizMa8d/AJjUGMfHMkopprU0lsCLuba231Sh/MFk1gtYJGC23 mkXcxM2kCCcxuX9FeRlXDK/haruJHZ2tXYhB1e3PkwEfMvV8Lw1cymQrvvumRmDiD7 dDfjC3sLGsHMXWByvoyFwD1tp7yMN3Mi3D7Zrj4M= X-Riseup-User-ID: 53AFC58B533AC5EE486CACD12D3BA0505258D1D7D13BC643CA50E9C1E473B16C Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4RfXlc5W9WzFpfK for ; Mon, 4 Sep 2023 15:35:40 +0000 (UTC) Message-ID: <9195f2126712560684ab72fea6f434b791afc333.camel@riseup.net> Subject: Re: cut off last lines of a document From: Ralf Mardorf To: questions@freebsd.org Date: Mon, 04 Sep 2023 17:35:37 +0200 In-Reply-To: <86edjet336.fsf@ltc.des.no> References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> <86edjet336.fsf@ltc.des.no> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.06 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.96)[-0.957]; DMARC_POLICY_ALLOW(-0.50)[riseup.net,none]; R_DKIM_ALLOW(-0.20)[riseup.net:s=squak]; R_SPF_ALLOW(-0.20)[+a:mx0.riseup.net]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[198.252.153.6:from]; DWL_DNSWL_NONE(0.00)[riseup.net:dkim]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:16652, ipnet:198.252.153.0/24, country:US]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[riseup.net:+]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_DN_NONE(0.00)[]; BLOCKLISTDE_FAIL(0.00)[198.252.153.6:server fail]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4RfXlg4Whpz3VvS On Mon, 2023-09-04 at 16:39 +0200, Dag-Erling Sm=C3=B8rgrav wrote: > Pipe-friendly pure shell solution: >=20 > drop_last_three() { > local a b c d > read a > read b > read c > while read d ; do > echo "$a" > a=3D"$b" > b=3D"$c" > c=3D"$d" > done > } Hi, this way it takes quite a while to get the last 3 lines of the Encyclop=C3=A6dia Britannica ;). Let alone that I don't understand how to u= se your shell function without rewriting it. =E2=80=A2 rocketmouse@archlinux ~/Desktop=20 $ cat read3 #!/bin/bash =20 drop_last_three() { local a b c d read a read b read c while read d ; do a=3D"$b" b=3D"$c" c=3D"$d" done echo "$a" echo "$b" echo "$c" } =20 drop_last_three < 2.txt =E2=80=A2 rocketmouse@archlinux ~/Desktop=20 $ cat 2.txt=20 1 2 3 4 5 6 7 8 9 10 =E2=80=A2 rocketmouse@archlinux ~/Desktop=20 $ time tail -3 2.txt=20 8 9 10 =20 real 0m0.010s user 0m0.002s sys 0m0.008s =E2=80=A2 rocketmouse@archlinux ~/Desktop=20 $ time ./read3=20 8 9 10 =20 real 0m0.017s user 0m0.008s sys 0m0.010s =20 The above test was done on a desktop PC. On an iPad Pro I'm using https://ish.app/ . This "app" is Alpine Linux which is build around busybox. It doesn't matter what shell I'm using (not necessarily busybox), iSH is always very slow. Such a workaround IMO isn't a good idea. I still recommend to let a script test what OS is used and to use different commands depending on the OS. Regards, Ralf From nobody Mon Sep 4 16:14:08 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RfYcN0Vtpz4rQw1 for ; Mon, 4 Sep 2023 16:14:28 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx1.riseup.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RfYcM0MGHz4DvN for ; Mon, 4 Sep 2023 16:14:27 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=riseup.net header.s=squak header.b=YylbCUVP; spf=pass (mx1.freebsd.org: domain of ralf-mardorf@riseup.net designates 198.252.153.129 as permitted sender) smtp.mailfrom=ralf-mardorf@riseup.net; dmarc=pass (policy=none) header.from=riseup.net Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4RfYcK2nJTzDqX6 for ; Mon, 4 Sep 2023 16:14:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1693844065; bh=e/Qda3RGlCHQ6HfTiK55Y44MqAEFkYNXeDeCyqMuVu4=; h=Subject:From:To:Date:In-Reply-To:References:From; b=YylbCUVPOYDeUfe0IhBHHcnVMKSNXqs9D+rCyYvB48yRgQzO+1XNWEeZwemZ23qQX DA8qKokoLJl9aqOr9zct0ittTvX42h3S3p69oeftLvz21icQXeEMLBgqZ6VNn/ss0y YEjcSY00z/n4CO+3mDku1cXobzP77ABNKLDkng1g= X-Riseup-User-ID: 718E72971085EA26F9A8D650ABDC904028A269262576BD4A0B8C808BB93BF858 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4RfYcJ58nDzJmvS for ; Mon, 4 Sep 2023 16:14:24 +0000 (UTC) Message-ID: <001c5d370cb70930b82588c47a6fa7217c7a2f79.camel@riseup.net> Subject: Re: cut off last lines of a document From: Ralf Mardorf To: questions@freebsd.org Date: Mon, 04 Sep 2023 18:14:08 +0200 In-Reply-To: <9195f2126712560684ab72fea6f434b791afc333.camel@riseup.net> References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> <86edjet336.fsf@ltc.des.no> <9195f2126712560684ab72fea6f434b791afc333.camel@riseup.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.16 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.96)[-0.960]; DMARC_POLICY_ALLOW(-0.50)[riseup.net,none]; R_DKIM_ALLOW(-0.20)[riseup.net:s=squak]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[198.252.153.129:from]; RWL_MAILSPIKE_GOOD(-0.10)[198.252.153.129:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; BLOCKLISTDE_FAIL(0.00)[198.252.153.129:server fail]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[riseup.net:dkim]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[riseup.net:+]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:16652, ipnet:198.252.153.0/24, country:US]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4RfYcM0MGHz4DvN On Mon, 2023-09-04 at 17:35 +0200, Ralf Mardorf wrote: > Let alone that I don't understand how to use > your shell function without rewriting it. Oops! My bad! "On Fri, 2023-09-01 at 10:43 +0200, Ede Wolf wrote: > For those also using linux, there is a "head -n -3" for this. From nobody Wed Sep 6 16:14:33 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RgnWc5zdvz4sfN6 for ; Wed, 6 Sep 2023 16:14:36 +0000 (UTC) (envelope-from dvoich@optonline.net) Received: from altprdrgo01.altice.prod.msg.synchronoss.net (altprdrgo01.altice.prod.msg.synchronoss.net [65.20.63.142]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RgnWb6mlQz3Gt9 for ; Wed, 6 Sep 2023 16:14:35 +0000 (UTC) (envelope-from dvoich@optonline.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=optonline.net header.s=dkim-002 header.b="newy/H2W"; spf=pass (mx1.freebsd.org: domain of dvoich@optonline.net designates 65.20.63.142 as permitted sender) smtp.mailfrom=dvoich@optonline.net; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=optonline.net; s=dkim-002; t=1694016875; bh=ONRaxU3HrlPaydmoaQJgFRH2u3Xa020HM95A8D2M3cQ=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:MIME-Version:Content-Type; b=newy/H2WC5FWbMig9ASCsnkSMGKZVyeo8tdcY79xYBMkr7EM885NKW2fyShwrOyyslzdO8ImiwuFHhlKwH0+CgkcYkHOOyHf/A3BGvYyNEuAKfe0HqvO8NBUC4gPVypdYCgudIkS2peNCL3obKGeWkKcQiH5n9TlEgEy8BmuF35g9jLf5/rB/r/LUb2twZ1VTrQbxh++2FdRBepyNFF6ugScFkvcnnFX2oAufibBr5xMjgzdCsnJIWe3DuPmpmYXnf2LklzdPScknHpG4bNFCmaePBZkdNpb5qTk1ZcFvvkkAcQ6udJkrr2Q+MOsvUGwxgVe/q71E/RktXR8A1FRFQ== X-RG-VS-CS: clean X-RG-VS-SC: 0 X-RG-VS: Clean X-Originating-IP: [24.185.149.5] X-RG-Env-Sender: dvoich@optimum.net X-RG-Rigid: 64D3D06304A30AB6 X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedviedrudehfedgleejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutefnvffkvefgfgfupdggtfgfnhhsuhgsshgtrhhisggvpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfgjfhfogggtgfesthhqredtredtjeenucfhrhhomhepgghlrgguucforghrkhhovhcuoeguvhhoihgthhesohhpthhonhhlihhnvgdrnhgvtheqnecuggftrfgrthhtvghrnhepteelvedukeefjeehledttddtfeekleejtdeuudeiteeftdejudevheevudelkeegnecukfhppedvgedrudekhedrudegledrheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopehhrghpphihrdgufigrrhhfjedrnhgvthdpihhnvghtpedvgedrudekhedrudegledrhedpmhgrihhlfhhrohhmpeguvhhoihgthhesohhpthhonhhlihhnvgdrnhgvthdpnhgspghrtghpthhtohepuddprhgtphhtthhopehquhgvshhtihhonhhssehfrhgvvggsshgurdhorhhgpdgruhhthhgpuhhsvghrpeguvhhoihgthhesohhpthhimhhumhdrnhgvthdpghgvohfkrfepfgfupdfovfetjfhoshhtpegrlhhtphhrughrghhotddu X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from happy.dwarf7.net (24.185.149.5) by altprdrgo01.altice.prod.msg.synchronoss.net (5.8.812) (authenticated as dvoich@optonline.net) id 64D3D06304A30AB6 for questions@freebsd.org; Wed, 6 Sep 2023 12:14:34 -0400 Date: Wed, 6 Sep 2023 12:14:33 -0400 From: Vlad Markov To: questions@freebsd.org Subject: Re: portmaster and CR Message-ID: <20230906121433.36725b91@happy.dwarf7.net> In-Reply-To: <3645ddcd-ede2-2116-3f68-5d3fcb53a643@pp.dyndns.biz> References: <20230901180918.137baaf3@happy.dwarf7.net> <3645ddcd-ede2-2116-3f68-5d3fcb53a643@pp.dyndns.biz> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; amd64-portbld-freebsd13.2) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.96 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.56)[-0.559]; R_SPF_ALLOW(-0.20)[+ip4:65.20.63.0/24]; R_DKIM_ALLOW(-0.20)[optonline.net:s=dkim-002]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:31898, ipnet:65.20.63.0/24, country:US]; BLOCKLISTDE_FAIL(0.00)[65.20.63.142:server fail,24.185.149.5:server fail]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[optonline.net]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[optonline.net:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[65.20.63.142:from]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; HAS_XOIP(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_FROM(0.00)[optonline.net]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[optonline.net]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4RgnWb6mlQz3Gt9 On Mon, 4 Sep 2023 01:10:30 +0200 Morgan Wesstr=C3=B6m wrote: > On 2023-09-02 00:09, Vlad Markov wrote: > >=20 > > I use portmaster to update my ports. Usually there are many ports needi= ng updating. Recently, portmaster requires a carriage return after finishin= g one update before it will resume. > >=20 > > I find that annoying. Is there a way to get it to just keep going? I ca= n see stopping on an error but not stopping on success. =20 >=20 > This is what I use for that exact purpose: >=20 > portmaster -aydbg >=20 Thanks, your post made me check my arguments to portmaster. The only times = it requires a carriage return is if I use "-P" or "--packages". The debug looks like this: + distfiles_checked=3D: + [ ! ' KhronosGroup-Vulkan-Loader-v1.3.262_GH0.tar.gz ' '=3D' ' KhronosGro= up-Vulkan-Loader-v1.3.263_GH0.tar.gz ' ] + pm_wait_di_file_complete + [ -z '' ] + head -1 I'll look more deeply at it. --=20 I dream of a better tomorrow, where chickens can cross the road and not be = questioned about their motives.=E2=80=9D =E2=80=93 Ralph Waldo Emerson From nobody Thu Sep 7 01:49:36 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rh2Hn32jQz4sHwR for ; Thu, 7 Sep 2023 01:50:13 +0000 (UTC) (envelope-from 93ab.82.c3ae000360d017.93851bf52c66eabbce2bfa2e734250ac@email-od.com) Received: from s1-b515.socketlabs.email-od.com (s1-b515.socketlabs.email-od.com [142.0.181.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rh2Hl6fQCz3RCn for ; Thu, 7 Sep 2023 01:50:11 +0000 (UTC) (envelope-from 93ab.82.c3ae000360d017.93851bf52c66eabbce2bfa2e734250ac@email-od.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tundraware.com header.s=slkey header.b=dzczJdPZ; dkim=pass header.d=email-od.com header.s=dkim header.b=HbaTDM54; spf=pass (mx1.freebsd.org: domain of 93ab.82.c3ae000360d017.93851bf52c66eabbce2bfa2e734250ac@email-od.com designates 142.0.181.21 as permitted sender) smtp.mailfrom=93ab.82.c3ae000360d017.93851bf52c66eabbce2bfa2e734250ac@email-od.com; dmarc=pass (policy=reject) header.from=tundraware.com DKIM-Signature: v=1; a=rsa-sha256; d=tundraware.com;s=slkey; c=relaxed/relaxed; q=dns/txt; t=1694051412; x=1696643412; h=x-tundraware-mailscanner-from:x-greylist:content-transfer-encoding:content-type:subject:from:to:content-language:mime-version:date:message-id:x-thread-info:subject:to:from:cc:reply-to; bh=9bBGefL5hOOUM8M78DHBBZ6gVt2jeGado77S5IWHpys=; b=dzczJdPZEGXKz2KXegeq1sURsBpx+2dalBCnCEt/w5gF9QgWiOmxKybXJp83giKBDxie+lvn6i2NhTR8nHMzzkjSLk4bHeW45CC5rHyc9Ef6z109NVvXOIqtzh0Wr9AyZPa5X/nX6FIlvcjw6HTCwp0GFdevS7B2FyPRXfWpnNIbmuTjQnelSANSlk65Ol8NxXnDVEnaEEI4O8wI7aYSOjTJeyKdHbDsmcyw6Dly4MbW2zBUG7faXndKKwhHrrfpzNIOfI6Is7m4DqcI8rq9yR33eTvT2mtihXAdL/T6/aAoQ3OYorIsbudJC9nw0IEBugmMi16WTGk9PE/4kw6KIA== DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1694051412; x=1696643412; h=x-tundraware-mailscanner-from:x-greylist:content-transfer-encoding:content-type:subject:from:to:content-language:mime-version:date:message-id:x-thread-info:subject:to:from:cc:reply-to; bh=9bBGefL5hOOUM8M78DHBBZ6gVt2jeGado77S5IWHpys=; b=HbaTDM54K4lnFU8isMn3wlYGOSmeUJHB4AJn2pEGTbmnc6Q6IGl4yCgGAa/2kO2oOpdxx2MYdCQlLrlcZmcGjx5RV69qwWTtlgY9fGmXPJN9bqEhehBzUQUPpgz88RU0QVRq/9QS3XLGL8E/mrZkZLe81GJ076t3Sz4ZQyGzGto= X-Thread-Info: OTNhYi4xMi5jM2FlMDAwMzYwZDAxNy5mcmVlYnNkLXF1ZXN0aW9ucz1mcmVlYnNkLm9yZw== Received: from r3.us-west-2.aws.in.socketlabs.com (r3.us-west-2.aws.in.socketlabs.com [142.0.190.3]) by mxh4.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Wed, 6 Sep 2023 21:49:58 -0400 Received: from oceanview.tundraware.com (oceanview.tundraware.com [45.55.60.57]) by r3.us-west-2.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Wed, 6 Sep 2023 21:49:57 -0400 Received: from [192.168.0.2] (ozzie.tundraware.com [75.145.138.73]) (authenticated bits=0) by oceanview.tundraware.com (8.17.1/8.17.1) with ESMTPSA id 3871nfVC058007 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Wed, 6 Sep 2023 20:49:41 -0500 (CDT) (envelope-from tundra@tundraware.com) Message-ID: <2d6b8f59-54e6-4919-ac0e-ad96de871c8d@tundraware.com> Date: Wed, 6 Sep 2023 20:49:36 -0500 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: FreeBSD Mailing List From: Tim Daneliuk Subject: 13.2 on i386? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (oceanview.tundraware.com [45.55.60.57]); Wed, 06 Sep 2023 20:49:41 -0500 (CDT) X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: 3871nfVC058007 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-2.9, required 6, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90) X-TundraWare-MailScanner-From: tundra@tundraware.com X-Spam-Status: No X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.69 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[tundraware.com,reject]; FORGED_SENDER(0.30)[tundra@tundraware.com,93ab.82.c3ae000360d017.93851bf52c66eabbce2bfa2e734250ac@email-od.com]; R_DKIM_ALLOW(-0.20)[tundraware.com:s=slkey,email-od.com:s=dkim]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BLOCKLISTDE_FAIL(0.00)[142.0.190.3:server fail,75.145.138.73:server fail,142.0.181.21:server fail,45.55.60.57:server fail]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[142.0.181.21:from,142.0.190.3:received]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[email-od.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[tundraware.com:+,email-od.com:+]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:53658, ipnet:142.0.180.0/22, country:US]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; FROM_NEQ_ENVFROM(0.00)[tundra@tundraware.com,93ab.82.c3ae000360d017.93851bf52c66eabbce2bfa2e734250ac@email-od.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[142.0.181.21:from] X-Rspamd-Queue-Id: 4Rh2Hl6fQCz3RCn I have 13.1 running on an ancient Mac Mini Core2 machine. I did this: git clone https://git.freebsd.org/src.git -b stable/13 Then did the usual compile (for a very loooong time) followed by mergemaster, and install world and install kernel steps. After a reboot, uname still reports that I am running 13.1. According to the 13.2 release notes, it should run fine on i386. Could someone please point me to an explanation and/or remediation? From nobody Thu Sep 7 05:34:40 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rh7Gx0h7Nz4s7Sv for ; Thu, 7 Sep 2023 05:34:49 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx0.riseup.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rh7Gv55qqz3Vw2 for ; Thu, 7 Sep 2023 05:34:47 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=riseup.net header.s=squak header.b="Ra6m7a//"; spf=pass (mx1.freebsd.org: domain of ralf-mardorf@riseup.net designates 198.252.153.6 as permitted sender) smtp.mailfrom=ralf-mardorf@riseup.net; dmarc=pass (policy=none) header.from=riseup.net Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4Rh7Gt0TH6z9s1s for ; Thu, 7 Sep 2023 05:34:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1694064886; bh=eYED+zuGVL41TYxHOGsrVRnpFGF06sCMiqFfXKNz3Go=; h=Subject:From:To:Date:In-Reply-To:References:From; b=Ra6m7a//mz5PNznMbIp5fQIFlbYCQ2R/tIPjQt86CozVQlsybks1cSPy2xjjGZFyN j/9jes+tvqP00fr+99GY2GwtBNWiX8z0eOaWSbomGBZ6vGk16aoAhifLv0HH4dxg4U 3Z3xK85LfNHF+fEF2Kw1OGnPeLsClBy311FfATgc= X-Riseup-User-ID: DEA268EEDD96A552BCCA303ABA5143A678673FD7A2E24A089AA9980ED29C7407 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4Rh7Gs2ljtzFpcD for ; Thu, 7 Sep 2023 05:34:45 +0000 (UTC) Message-ID: Subject: Re: 13.2 on i386? From: Ralf Mardorf To: questions@freebsd.org Date: Thu, 07 Sep 2023 07:34:40 +0200 In-Reply-To: <2d6b8f59-54e6-4919-ac0e-ad96de871c8d@tundraware.com> References: <2d6b8f59-54e6-4919-ac0e-ad96de871c8d@tundraware.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.10 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[riseup.net,none]; R_DKIM_ALLOW(-0.20)[riseup.net:s=squak]; R_SPF_ALLOW(-0.20)[+a:mx0.riseup.net]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[198.252.153.6:from]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:16652, ipnet:198.252.153.0/24, country:US]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[riseup.net:+]; TO_DN_NONE(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[riseup.net:dkim]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4Rh7Gv55qqz3Vw2 On Wed, 2023-09-06 at 20:49 -0500, Tim Daneliuk wrote: > After a reboot, uname still reports that I am running 13.1. Hi, maybe you missed that autoboot did not use the expected path? /boot/GENERIC/kernel=20 /boot/kernel.old/kernel /boot/kernel.customized/kernel etc. https://docs.freebsd.org/en/books/handbook/boot/ Regards, Ralf From nobody Thu Sep 7 11:33:45 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RhHGk56S0z4s5GB for ; Thu, 7 Sep 2023 11:35:10 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor.nl2k.ab.ca (doctor.nl2k.ab.ca [204.209.81.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RhHGj6pxbz3Gtp for ; Thu, 7 Sep 2023 11:35:09 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of doctor@doctor.nl2k.ab.ca designates 204.209.81.1 as permitted sender) smtp.mailfrom=doctor@doctor.nl2k.ab.ca; dmarc=pass (policy=quarantine) header.from=nl2k.ab.ca Received: from doctor by doctor.nl2k.ab.ca with local (Exim 4.96 (FreeBSD)) (envelope-from ) id 1qeDGb-0007Vn-0d for freebsd-questions@freebsd.org; Thu, 07 Sep 2023 05:33:45 -0600 Date: Thu, 7 Sep 2023 05:33:45 -0600 From: The Doctor To: freebsd-questions@freebsd.org Subject: Freebsd as a Wireguard client on Freebsd 13.2-RELEASE-p3 Message-ID: List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spamd-Bar: + X-Spamd-Result: default: False [1.22 / 15.00]; INTRODUCTION(2.00)[]; NEURAL_SPAM_LONG(0.98)[0.984]; NEURAL_HAM_MEDIUM(-0.97)[-0.974]; DMARC_POLICY_ALLOW(-0.50)[nl2k.ab.ca,quarantine]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; NEURAL_HAM_SHORT(-0.09)[-0.086]; TO_DN_NONE(0.00)[]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:6171, ipnet:204.209.81.0/24, country:CA]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4RhHGj6pxbz3Gtp Anyone having problems with the above? -- Member - Liberal International This is doctor@nk.ca Ici doctor@nk.ca Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising! Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b Manitoba on 3 Oct 2023 vote Liberal! Beware https://mindspring.com From nobody Thu Sep 7 12:32:17 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RhJXx2JcTz4sd9w for ; Thu, 7 Sep 2023 12:32:33 +0000 (UTC) (envelope-from erwan@rail.eu.org) Received: from mail.rail.eu.org (ice.rail.eu.org [176.9.10.153]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RhJXv667cz3Wfj for ; Thu, 7 Sep 2023 12:32:31 +0000 (UTC) (envelope-from erwan@rail.eu.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=rail.eu.org header.s=mail header.b=sQw3Bs6C; spf=pass (mx1.freebsd.org: domain of erwan@rail.eu.org designates 176.9.10.153 as permitted sender) smtp.mailfrom=erwan@rail.eu.org; dmarc=pass (policy=none) header.from=rail.eu.org Received: from [10.40.32.56] (spiderman.pulsation.fr [80.74.64.33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: erwan@rail.eu.org) by mail.rail.eu.org (Postfix) with ESMTPSA id EB56E2F5 for ; Thu, 7 Sep 2023 12:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rail.eu.org; s=mail; t=1694089943; bh=qf1lLdyZ+bkPS9IVVCYNT2eBx+ZoYDCaeW764tdGEWw=; h=Date:Subject:To:References:From:In-Reply-To:From; b=sQw3Bs6CRyj4WKv0vbMUgJ0wdZGLpXP5RYh9wRpfjpHZ9c/fCJwkzjCYh8pxrvxgJ WtXQOPiB1jdzRqUaU8XQymWlmeekkNn9rp+N4ib9IIBeXHFVYENA7G2435W5cu5sfb njybImVhYHGM2x8e6zJjs4wXkg8x8xVS7NKLBCKY= Message-ID: <363297aa-f6c8-4c20-96bc-05d5d9e5a73b@rail.eu.org> Date: Thu, 7 Sep 2023 14:32:17 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Freebsd as a Wireguard client on Freebsd 13.2-RELEASE-p3 Content-Language: fr To: questions@freebsd.org References: From: Erwan David Autocrypt: addr=erwan@rail.eu.org; keydata= xsFNBFJAaOMBEADAHsjODUMNImClvj0eAW7oCKr/cjccRts2DVrslhb6UEDbxgvnCKGtRy2P A9NcILX/+lG9zaoPw0caDSXDuubrC/giKZAphUTSmd+Uqz+9WDtU602WQuP5d5S1aAUe+fzT 6l9iDSR8Fz07ajjZ791Q0P1P4EwWQDbCJvmNXAknwysX0fIAlLpDaIQ0Asa6IvG/v8TyLZSE U0NytwIfHJMJk5btrM4fdaGc+4XnTK0E2Oa+Qjab18fsBLtHGctQUrDjrWvnGj1slHrfhUrT 67e9NHZgDPmEsOeCChd1ZWurIR0AQFp/Wrz80abJltk+aFswEzOvhkriOGjt4gM31BocpNbZ +sEEg9M6skAeXvuISkfS0bCM3kZ6MgywHE98AbA+8WxiKMRKuuuTNSEmIIRQt8dn7ad/1+r1 KAZ1bkB2naCDArqnpeDb65+378qh/2J6/M0UivSMFLzxXc+AyIxucjmrK8VCWQbDwUiA6sPU W4BC7V7+5j7ELzh4JzQX2LisNzPOqkaTVTfmCgDeL7V9LZErtLlG1rYbISrLvDnWNdiJ9l1d flxnhCs4oqn8KA5DtV6HNwIW6b6zwEHFoDPwtK2fctj0VIRwjiIMlyrEWHiC5NZoPyfexGlj RNP7oaDb6PIItgnBItWq/ZRymXP9gA945DjnrozsUZ02y7OMjQARAQABzR9FcndhbiBEYXZp ZCA8ZXJ3YW5AcmFpbC5ldS5vcmc+wsGUBBMBCAA+AhsDBQsJCAcDBRUKCQgLBRYDAgEAAh4B AheAFiEEyrEiDgTd9unPDNXJuA6sFeQP/Q8FAlzBWT8FCRPm8dwACgkQuA6sFeQP/Q+Ikw/+ Img88okG/yRMOXScYx2/xzr85kpoWJ2k6Pl5w23zZ3oHflMGqXfp5mVQbq2X7MRx/CJwvBcK BAOPe2xVPLh26AlCOI+ZY/cM7HtnKPhIGRqTVi6K8wRE2HSpusVTP9sIt3V7oudYawJq/3KG zRsLXQb4FzvZxE+WXEB1NOHYZsH9A/gG1ljsTAux0Gh6RFp+Ij904YzFyh2gSRTpcSmyotXA X+ur/Cp4fPxCgIKP5evT0Nnq+LUwUoYjhHh73VubdmhouXa4EHQnBtGpuAyRDYnu0GPO2Oo6 Zudsin1MKbYdfwwKo2be7XQa2L1Xx3eavwseJqAAYucKxEQtiqenRWV40Av18Jkv17g0ao3L 0vtoKViljOJgL1Ny8436b6oLJzyNOby0OWHbRjp1l/RYfVYXW2wlF5XzLUMBclZX1fSjheoK vCewHoiRl9XPA+Y4RXMfHRRRFqTt3rkt8A7FBnVXePqwCl63FJ7Ywap60UIsUkXqI2fv5COH eduWKzLvwK22KaaleDadxDgRT7uJSS1XVIjUhkNgrqVMhfoo3yS6qi4+7baGVSrjYRLOp8IO bBtxuNPaQw+/R6BsLC0qacCV0FFY7k22aaKl1WoMNkzY38hyxOPp2VHLtwIGGhY8hHicQUsu KTkF0e24LM5x0Qd7/YyckRDN3FxM6wEYANvOwU0EUkBo4wEQAL6D44lG/kjEQCY17c5qoeIK RMgR2ZUC6Mx2wPjhawaxRoiDE6EYEt7A5S1KEx+VXDClRnj0DrnCC5UqWsKq0443p3SploIq oCU9yaUe5sfutwCb3SWl2Ae9sAb09RIgdS41Hhg1U1TctIPjLy+0A9qtTopqPZi3ffE+RcJG RDJbJO9e8FiGIkGayruqmvFGJ7lOyK806FJJduDdLbK/l9G3tvxglvrAoPfjxPMPqUACk4t+ 5Gaiu56Kdzf+Fh6hk5UJSV5ETj5FLes+eQgwqa0cPbVsbxZ93Q3ZXBCRTJVP7V34cGjGEeqR ikmceoLJ3Z0erpPY6xn8uHP0AWTh+8g5IlGnt+nfwqPvQcCOBpQGEWIX5Olb52w9J6/TrowV u0aK4XjMuEKRt+ggHwmE6oGGwMppMsEOZXkMOMOJt5hStJ2XcNljH5lWFKL+JyuPJVjOZTt/ wbOk2xtUANAZdsGhQcrkkUx961PVAz4fo+8LDX4eRVLvuFUTJgRaMzlh6EQkgCzprYrZUHa2 5/+GTMygk6kG1cEn10gENAT4g9Gmq6FCExQERg5fZDwC5sxNVPqBa54zyXGGJ+4gReJglFsj xHPKgTaebVTMkwYhVR8UeAMb/yBzpsTD5dr0+Fc7VnmBs5rjqR8bnnx0agJ0HkIB9efAw5tl gwNbVUo5OaUvABEBAAHCwV8EGAEIAAkFAlJAaOMCGwwACgkQuA6sFeQP/Q8A7g//RF2nU4xm n9jlmP1YhiJ6Kx72ODpDVONAujNJ3i71RcGS84pTwedHm8VaOI9hH1eSIxM4AM+hFmruTw65 PR0aziUjMZRsZ112GgiC6UyzfAUIQ1ypjty6rpE1P8C2G2WNNuEwAnr6OiTZA4kim9YmF1FQ y61dbAbajJaFA/SABMu8WJW/YXVYtxHgGW7KLj9LHfnWmbkDz1ECBJsh76PeHavsqhRTHfp7 JWFmsVsxViJT4sr+HkiDfTDuT4k1Ba8Kj3yscsntyNH1l8G/YbDdsfHEhDmsYCLrGb/fUm+p C4DT4+ygLSCJkI1/elKiUpOmOuMgu5xieWhXaWKQa73zsdShhuyRa74MPA8WjkLyDRlb8cGv J5cwsjwnidHE2gYqZETGSGuZDoTPUb5kc2XEKwg1eLuL67acYllzp2epAOAbXn2RahZJPUNX D9MKacByetKBAusXNi4AszxcBqFEHpG4/t3stLmXIDd5LvUayovHd1steHbEPvl9dpU36Fte cnUNO6Z9JhIvAYy8b/7TT61qwQvOsca+NMlS/q+hPkx3npI1GFEAkanFLrLVE1MGT6C0kZ2M Em7mCpZQIZT2IhMsHXhaMQlP5np5/mFJ915bd+B3usfoQNWJmN3g7tVZGvl5Z7m7J5Zv3L84 U13tbPt33blV8WK4hIDA/c/rm2k= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.85 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.96)[-0.959]; DMARC_POLICY_ALLOW(-0.50)[rail.eu.org,none]; R_DKIM_ALLOW(-0.20)[rail.eu.org:s=mail]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; XM_UA_NO_VERSION(0.01)[]; RCVD_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[questions@freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:24940, ipnet:176.9.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; BLOCKLISTDE_FAIL(0.00)[176.9.10.153:server fail,80.74.64.33:server fail]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[rail.eu.org:+]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4RhJXv667cz3Wfj Le 07/09/2023 à 13:33, The Doctor a écrit : > Anyone having problems with the above? > No problem for me between 2 FreeBSD 13.2-p3, or between a FreeBSD 13.2-p3 and a mikrotik -- Erwan David From nobody Thu Sep 7 16:17:36 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RhPXg3tPmz4sVhH for ; Thu, 7 Sep 2023 16:17:39 +0000 (UTC) (envelope-from dvoich@optonline.net) Received: from altprdrgo06.altice.prod.msg.synchronoss.net (altprdrgo06.altice.prod.msg.synchronoss.net [65.20.63.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RhPXf4Wr8z3Sq0 for ; Thu, 7 Sep 2023 16:17:38 +0000 (UTC) (envelope-from dvoich@optonline.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=optonline.net header.s=dkim-002 header.b=HQTmDD29; spf=pass (mx1.freebsd.org: domain of dvoich@optonline.net designates 65.20.63.40 as permitted sender) smtp.mailfrom=dvoich@optonline.net; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=optonline.net; s=dkim-002; t=1694103458; bh=ww/33fOIf2omaQklrKVmuZ2RuYVbJDh1+4YlipNbKKA=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:MIME-Version:Content-Type; b=HQTmDD29IBHHE86E2lwUlrhYnvxCxEsA1c0D9fxyj0p8BU2DbJiNyVejfvGvAjEPgAVxm/Ig54L9My/IglNTmIqI0VxvDqlUqW8vX67wNkkEFYrFcJmG9g3R4ocdnKR98vL5iCZ1limTBgRsI4ZJd7iJ6JRo7PuXe0z+aPfP/KOi/Eo4IxY0hLTiX/nYZUtvdEoqK25cB4/bbnDBiXBegCdfBZGWvjxKeDhxAevFHMc4ny7Fg1vwvnjnhy5qDn1KmSZ3Ia7hCyO1qgvP9frSZo0EKsgxdAED8rCQppMsITs5WVplcPCjzEw19KMEOpWIb49qPVjcbWGgoQhHoDK3EQ== X-RG-VS-CS: clean X-RG-VS-SC: 0 X-RG-VS: Clean X-Originating-IP: [24.185.149.5] X-RG-Env-Sender: dvoich@optimum.net X-RG-Rigid: 64D3D2B404C6415A X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedviedrudehhedgleelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutefnvffkvefgfgfupdggtfgfnhhsuhgsshgtrhhisggvpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfgjfhfogggtgfesthhqredtredtjeenucfhrhhomhepgghlrgguucforghrkhhovhcuoeguvhhoihgthhesohhpthhonhhlihhnvgdrnhgvtheqnecuggftrfgrthhtvghrnhepteelvedukeefjeehledttddtfeekleejtdeuudeiteeftdejudevheevudelkeegnecukfhppedvgedrudekhedrudegledrheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopehhrghpphihrdgufigrrhhfjedrnhgvthdpihhnvghtpedvgedrudekhedrudegledrhedpmhgrihhlfhhrohhmpeguvhhoihgthhesohhpthhonhhlihhnvgdrnhgvthdpnhgspghrtghpthhtohepuddprhgtphhtthhopehquhgvshhtihhonhhssehfrhgvvggsshgurdhorhhgpdgruhhthhgpuhhsvghrpeguvhhoihgthhesohhpthhimhhumhdrnhgvthdpghgvohfkrfepfgfupdfovfetjfhoshhtpegrlhhtphhrughrghhotdei X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from happy.dwarf7.net (24.185.149.5) by altprdrgo06.altice.prod.msg.synchronoss.net (5.8.812) (authenticated as dvoich@optonline.net) id 64D3D2B404C6415A for questions@freebsd.org; Thu, 7 Sep 2023 12:17:38 -0400 Date: Thu, 7 Sep 2023 12:17:36 -0400 From: Vlad Markov To: questions@freebsd.org Subject: Re: portmaster and CR Message-ID: <20230907121736.7b1f5448@happy.dwarf7.net> In-Reply-To: <20230906121433.36725b91@happy.dwarf7.net> References: <20230901180918.137baaf3@happy.dwarf7.net> <3645ddcd-ede2-2116-3f68-5d3fcb53a643@pp.dyndns.biz> <20230906121433.36725b91@happy.dwarf7.net> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; amd64-portbld-freebsd13.2) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.09 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.86)[-0.856]; NEURAL_HAM_MEDIUM(-0.83)[-0.831]; R_DKIM_ALLOW(-0.20)[optonline.net:s=dkim-002]; R_SPF_ALLOW(-0.20)[+ip4:65.20.63.0/24]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; FREEMAIL_FROM(0.00)[optonline.net]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:31898, ipnet:65.20.63.0/24, country:US]; FREEMAIL_ENVFROM(0.00)[optonline.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[optonline.net:+]; DMARC_NA(0.00)[optonline.net]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4RhPXf4Wr8z3Sq0 On Wed, 6 Sep 2023 12:14:33 -0400 Vlad Markov wrote: > On Mon, 4 Sep 2023 01:10:30 +0200 > Morgan Wesstr=C3=B6m wrote: >=20 > > On 2023-09-02 00:09, Vlad Markov wrote: =20 > > >=20 > > > I use portmaster to update my ports. Usually there are many ports nee= ding updating. Recently, portmaster requires a carriage return after finish= ing one update before it will resume. > > >=20 > > > I find that annoying. Is there a way to get it to just keep going? I = can see stopping on an error but not stopping on success. =20 > >=20 > > This is what I use for that exact purpose: > >=20 > > portmaster -aydbg > > =20 >=20 > Thanks, your post made me check my arguments to portmaster. The only time= s it requires a carriage return is if I use "-P" or "--packages". >=20 > The debug looks like this: >=20 > + distfiles_checked=3D: > + [ ! ' KhronosGroup-Vulkan-Loader-v1.3.262_GH0.tar.gz ' '=3D' ' KhronosG= roup-Vulkan-Loader-v1.3.263_GH0.tar.gz ' ] > + pm_wait_di_file_complete > + [ -z '' ] > + head -1 >=20 > I'll look more deeply at it. > --=20 What goes on is that DI_FILES is the empty string so head is waiting for so= me input which I give by entering a carriage return. I added a check for th= e empty string. It works for me. I am not sure what I encountered is a bug = or not. 1226 if [ -z "$di_file_complete" ] && [ -n "$DI_FILES" ] && [ `head -1= $D I_FILES` =3D '############' ]; then --=20 I dream of a better tomorrow, where chickens can cross the road and not be = questioned about their motives.=E2=80=9D =E2=80=93 Ralph Waldo Emerson From nobody Thu Sep 7 20:18:35 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RhVtn551mz4smhR for ; Thu, 7 Sep 2023 20:18:41 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RhVtm74Pdz4Vxk for ; Thu, 7 Sep 2023 20:18:40 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=DxUG7mFF; spf=pass (mx1.freebsd.org: domain of grahamperrin@gmail.com designates 2a00:1450:4864:20::52e as permitted sender) smtp.mailfrom=grahamperrin@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-52a1ce529fdso1888901a12.1 for ; Thu, 07 Sep 2023 13:18:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694117920; x=1694722720; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:from:cc:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=VmEFYAWSlsNPjYw4r0rwMQfnmwwauuo0MVY5GieODZE=; b=DxUG7mFFK/RIG3YwHaBH1KrV2qThG0eTDwC0wp7BajoLaxHEZNib66M/GSX+7UKc11 zcWGpCuVZkSPvc6UJNigQYnB02A77HN9rHcAEGjF9ZhF26Eq8hK8dIzos3wwwnCZzS7y /gca4xwdb02qffPXSlJ0xlwKSg3cIaMSfEVnNX9NOFbF3uHz4asjYLM17d9r3ob9wFkh lnrujfPUk9Pb7GLrFEPfQSQfDAFq8PiUF+yLJjToVj6IvF9cvFifWl9oIHSgMjnG7/tX EfoLJZ+u2jQb2PqkDnzGg61fZDNF2wxowulqna+qSoapJnhzsSxNlHBXgDzrzyZn6Fox JsHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694117920; x=1694722720; h=content-transfer-encoding:in-reply-to:from:cc:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VmEFYAWSlsNPjYw4r0rwMQfnmwwauuo0MVY5GieODZE=; b=KPSdCuGief43ZyW/RRQjGgTA587gFRBold2spOqJS8HuX8Ox4k1a/mCI9ZjKwcmUR0 44+GRBeH0WV6xcfYS3DWsStPMek0abafr4gBL3rC+Wk9bOvwiyOb/s7sglLJEAdtPtq7 zt6nO6lgZsSfpY2DubJGAps+dDghTWh2lEzjBjJrdvqL4UH47XVYuSRGIyHj98ho5Un9 uSJisRHPk3espa59pvK586D7KUDnOsPKe5yqhukUVXbY2mKbTPY8dDc9pKIln/toq5kr xJ+EOhmx+5aERmkRX0M8lEGjhStcmXzTopQ6FS8vESQwGRzHN8gl08feXNPzcKYC7+rG nCkA== X-Gm-Message-State: AOJu0YwhZV+f3Jyq/6ltkAPSlOMNb7SKrdqG9EmQJFliGfdZKTwAkMg1 LbUdlNkyvKZg/MgDVMcBlqg0Cs84fa8= X-Google-Smtp-Source: AGHT+IFfb6UpOvcLDykHkc+3/D7766+cc5nCsIVJnOivPnXoqTIedp8wmZ36mbA3fYfkU52MzuzjKg== X-Received: by 2002:a05:6402:1a43:b0:52c:4ddb:6ecf with SMTP id bf3-20020a0564021a4300b0052c4ddb6ecfmr292586edb.37.1694117919409; Thu, 07 Sep 2023 13:18:39 -0700 (PDT) Received: from [192.168.1.10] (80-42-66-93.dynamic.dsl.as9105.com. [80.42.66.93]) by smtp.gmail.com with ESMTPSA id e1-20020a056402148100b0052567e6586bsm190979edv.38.2023.09.07.13.18.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Sep 2023 13:18:38 -0700 (PDT) Message-ID: Date: Thu, 7 Sep 2023 21:18:35 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: git-rebase(1) prior to a PR in in the github.com/freebsd area Content-Language: en-US To: Steve O'Hara-Smith References: <20230827083631.192eb52f7b99e9ebd6b54ccf@sohara.org> <20230827191324.eb8e546fdfb61469dd14bc5a@sohara.org> <55dc4697-dafe-19fe-0017-20a6effbac2b@gmail.com> <20230827213415.27b35f49feaf6b6959f9df7c@sohara.org> Cc: FreeBSD questions From: Graham Perrin In-Reply-To: <20230827213415.27b35f49feaf6b6959f9df7c@sohara.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; FREEFALL_USER(0.00)[grahamperrin]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52e:from]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4RhVtm74Pdz4Vxk On 27/08/2023 21:34, Steve O'Hara-Smith wrote: > On Sun, 27 Aug 2023 20:50:56 +0100 > Graham Perrin wrote: > >> I did try 'git rebase -i' before my previous post, there was nothing to >> pick (or drop), which is partly why my mind went blank. > Ah try git rebase -i HEAD~ Success. Thanks, Steve. Result: % git -C /usr/src log -n 1 commit 9de94bcad3dab199829e2755e816a1b30e23054c (HEAD -> bhyve, origin/bhyve) Author: Graham Perrin Date:   Sat Aug 19 08:41:09 2023 +0100     lowercase b for bhyve in five files     MFC after:      3 days     Pull-request: https://github.com/grahamperrin/freebsd-src/pull/3     Closes: https://github.com/grahamperrin/freebsd-src/pull/3     Pull-request: https://github.com/freebsd/freebsd-src/pull/838     Closes: https://github.com/freebsd/freebsd-src/pull/838     Signed-off-by:  Graham Perrin % From nobody Fri Sep 8 00:02:13 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rhbrz1nT0z4swMv for ; Fri, 8 Sep 2023 00:02:27 +0000 (UTC) (envelope-from tom.browder@gmail.com) Received: from mail-ua1-x934.google.com (mail-ua1-x934.google.com [IPv6:2607:f8b0:4864:20::934]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rhbry16PJz4dlS for ; Fri, 8 Sep 2023 00:02:26 +0000 (UTC) (envelope-from tom.browder@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=AkZY9h9L; spf=pass (mx1.freebsd.org: domain of tom.browder@gmail.com designates 2607:f8b0:4864:20::934 as permitted sender) smtp.mailfrom=tom.browder@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ua1-x934.google.com with SMTP id a1e0cc1a2514c-7a2ab581cb1so620502241.1 for ; Thu, 07 Sep 2023 17:02:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694131345; x=1694736145; darn=freebsd.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=ZsP7N4nb8eIqKCNwGbdVp2qYdu8HJH0/MhRibQz2z/U=; b=AkZY9h9LBNzNIldsCiMuR64EeSk+zQa/dMfxwd7G6arDiTgrQv9JXTJcK/v+V0XsiR gR/040BTP54VnDLuLAd5z4IawEzOtdutClckJN03ie4TaEF6xI9wck/YH6WVwAJ45ATU +atITyyFo6Lx2mhSFcEiy0V4iANaKys7KLA9uZyMlmwXL08QoTkRrBJFnRsNxY83HtMw Eq+Cr7S5v/t2lL2meQp1p/FFh9Tyi9DMu4GbdrTUiuyjDcTTna6aug60DMnljfcmxzOX Jk5GXW55m9OpO0inUczBnxMfA0pZ0FQuWY4zJoRvDhTVutIg++LFLPFegNRLnwreuikS U2vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694131345; x=1694736145; 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=ZsP7N4nb8eIqKCNwGbdVp2qYdu8HJH0/MhRibQz2z/U=; b=QilNHsrrVxDUglavSYjt10rQcHwpvq/GxzSwLkpEiVaa0di/k/wDM06X9AQoqJE18i 1SIvXmFT254YI7+vtTVtkQgS4euhPXaTbxNNkWGE88CgOA6tJJXzKTICb4jeVYNMNgaj kqX3LcoIQKOnqX5hGNAA+juiF8SyySlyGo69M05lo+kaa540Bb+/KDFOKbBj1cVFX2ft xAafapD4oBPoH0Cip1gHmiX/iB3D09VMO6EGYZSOHcc91T78I7v/kbgzwxNAmu/8SV+X XksHEIFTwfK4R6m5CTwQoUTA9ZHidxfZkWvtDODvOAwriKwFajggxBX4Vs2DOZZ+dg4y Essw== X-Gm-Message-State: AOJu0Yyhvswtn2JGX2IDhSWgLGWtxHfjlk2E4QKf8NardJEdiXMV6vN6 gSupTXxuL4l7ak3OWUTv5CG+eIxOOJ4/8e5YB/riXn+k X-Google-Smtp-Source: AGHT+IETc/NpOrnhWVdcDY+eYGkBDv7svr/69A+7N+OemBFyoMyD21ZROHTfWfOhfPffTrrfSjP9gk+Xp4RufFsPlgU= X-Received: by 2002:a67:f557:0:b0:44d:5b62:bcd5 with SMTP id z23-20020a67f557000000b0044d5b62bcd5mr1350282vsn.23.1694131344997; Thu, 07 Sep 2023 17:02:24 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> In-Reply-To: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> From: Tom Browder Date: Thu, 7 Sep 2023 19:02:13 -0500 Message-ID: Subject: Re: cut off last lines of a document To: listac@nebelschwaden.de Cc: User Questions Content-Type: multipart/alternative; boundary="0000000000000581300604cdb108" X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TAGGED_FROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::934:from]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org] X-Rspamd-Queue-Id: 4Rhbry16PJz4dlS --0000000000000581300604cdb108 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Sep 1, 2023 at 05:23 Ede Wolf wrote: > Hello, > From a file/output with an unknown amount of lines, I would like to > filter out, or not display, the last 3 lines. Is there a way to archive > this? Ede, I would like to know your use case. You have had lots of suggestions of arcane shell scripting solutions for use on any Unix-like host, but I want to suggest an alternative which is even more universal: use a Raku script (see the solution below). Let me explain. Short version =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D In any line of work, I believe you should automate any work you can to give more time for other tasks. For the work that can be automated by shell scripting, Raku provides easier coding and easier maintenance. Long version =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D In my younger days I was a semipro sysadmin for years with a DoD contractor. I introduced Linux for our CAD developers when we were still using SGI workstations that cost about $25K and $6K annually to support. I introduced the old Yggdrasil Linux installed on a small IBM PC as a much cheaper alternative as we started weaning ourselves off big iron and providing all analysts with his or her own workstation. Over the years I used Perl to do more complicated sysadmin support for my team of analysts and moved away csh to bash in the process. Note Perl is now available by default on the Linux distros I=E2=80=99m familiar with , but I have been us= ing Raku as its replacement since 2015 and, while not automatically available, it is easily installable as packaged in major Linux distros as well as for NetBSD. Other installation support is provided for Windows and MacOS. See < rakudo.org> for details. RAKU SOLUTION So, with Raku installed, I view a file =E2=80=9Csomefile=E2=80=9D in a term= inal with a Raku one-liner like this at the shell prompt: $ raku -e 'say $_ for "somefile".IO.lines[^(*-3)]' ...all but the last three lines scroll by... (Note I would make the one-liner reusable by putting that line in a bash script file with a suitable and meaningful name, something like "cat-less-3-lines.sh." Happy rakuing! -Tom --0000000000000581300604cdb108 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Sep 1, 2023 at 05:23 Ede Wolf &l= t;listac@nebel= schwaden.de> wrote:
> Hello,
>=C2=A0 From a file/output with an unknown amount of lines, I would like= to
> filter out, or not display, the last 3 lines. Is there a way to archiv= e
> this?

E= de, I would like to know your use case. You have had lots of suggestions of= arcane shell scripting solutions for use on any Unix-like host, but I want= to suggest an alternative which is even more universal: use a Raku script = (see the solution below). Let me explain.

Short version
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

In any line of work, I beli= eve you should automate any work you can to give more time for other tasks.= =C2=A0 For the work that can be automated by shell scripting, Raku provides= easier coding and easier maintenance.

Long version
=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D

In my younger days I was a semipro sysadmin for years with a DoD contractor= . I introduced Linux for our CAD developers when we were still using SGI wo= rkstations that cost about $25K and $6K annually to support.

I introduced the old Yggdrasil Linux installed on a small IBM PC as a much = cheaper alternative as we started weaning ourselves off big iron and provid= ing all analysts with his or her own workstation. Over the years I used Per= l to do more complicated sysadmin support for my team of analysts and moved= away csh to bash in the process. Note Perl is now available by default on = the Linux distros I=E2=80=99m familiar with , but I have been using Raku as= its replacement since 2015 and, while not automatically available, it is e= asily installable as packaged in major Linux distros as well as for NetBSD.= Other installation support is provided for Windows and MacOS. See <rakudo.org> for details.
<= div dir=3D"auto">...all but the last three lines scroll by...

(Note I would make the one-liner reusable by putting that line in a bas= h script file with a suitable and meaningful name, something like "cat= -less-3-lines.sh."
--0000000000000581300604cdb108-- From nobody Fri Sep 8 21:39:57 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rj8fG4Xwbz4rrFp for ; Fri, 8 Sep 2023 21:40:06 +0000 (UTC) (envelope-from fquest@paz.bz) Received: from emailh.ca (emailh.ca [23.235.65.100]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rj8fF5YxTz3LqS for ; Fri, 8 Sep 2023 21:40:05 +0000 (UTC) (envelope-from fquest@paz.bz) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of fquest@paz.bz designates 23.235.65.100 as permitted sender) smtp.mailfrom=fquest@paz.bz; dmarc=none Received: from [23.235.68.254] (helo=[10.10.10.9]) by emailh.ca with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qejCm-000BYp-67; Fri, 08 Sep 2023 14:39:56 -0700 Content-Type: multipart/alternative; boundary="------------qLuuY0cAJrZX5wNu5dkKZYRx" Message-ID: <582c6cfe-3c10-410f-baa1-98f8b548d250@paz.bz> Date: Fri, 8 Sep 2023 14:39:57 -0700 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: questions@freebsd.org From: Jim Pazarena Subject: tcpwrappers in recent release 13.2 X-Spamd-Bar: - X-Spamd-Result: default: False [-1.63 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.97)[-0.973]; NEURAL_SPAM_SHORT(0.64)[0.636]; R_SPF_ALLOW(-0.20)[+ip4:23.235.65.64/26]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; R_DKIM_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:852, ipnet:23.235.64.0/20, country:CA]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[paz.bz]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4Rj8fF5YxTz3LqS This is a multi-part message in MIME format. --------------qLuuY0cAJrZX5wNu5dkKZYRx Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit it seems that the built in tcpwrappers for 13.2 has not been built with the " blacklist extension". Which by Wietse Venema's definition: "adds a new host pattern to the TCP Wrapper access control language. Instead of a host name or address pattern, you can specify an external /file/name with host name or address patterns.   The feature can be used recursively" ... "The /file/name extension makes it easy to blacklist bad sites, for example, to block unwanted electronic mail when libwrap is linked into sendmail.  Adding hosts to a simple text file is much easier than having to edit a more complex hosts.allow/deny file" Can anyone confirm that this is indeed missing? -- fquest@paz.bz    Jim Pazarena --------------qLuuY0cAJrZX5wNu5dkKZYRx Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit it seems that the built in tcpwrappers for 13.2 has not been built with the " blacklist extension".
Which by Wietse Venema's definition:
"adds a new host pattern to the TCP Wrapper access control language. Instead of a host name or address pattern, you can specify an external /file/name with host name or address patterns.   The feature can be used recursively"
... "The /file/name extension makes it easy to blacklist bad sites, for example, to block unwanted electronic mail when libwrap is linked into sendmail.  Adding hosts to a simple text file is much easier than having to edit a more complex hosts.allow/deny file"

Can anyone confirm that this is indeed missing?

--
fquest@paz.bz    Jim Pazarena

--------------qLuuY0cAJrZX5wNu5dkKZYRx--