From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6612 invoked from network); 20 Oct 2022 08:55:58 -0000 Received: from tb-ob21.topicbox.com (173.228.157.67) by inbox.vuxu.org with ESMTPUTF8; 20 Oct 2022 08:55:58 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob21.topicbox.com (Postfix) with ESMTP id 8C0991B7E4 for ; Thu, 20 Oct 2022 04:55:54 -0400 (EDT) (envelope-from bounce.mMe347adb350456cff65756620.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 4A4EB108EA7; Thu, 20 Oct 2022 04:55:54 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=prosimetrum.com; spf=pass smtp.mailfrom=umbraticus@prosimetrum.com smtp.helo=asquith.prosimetrum.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:date:from:to:subject:in-reply-to :mime-version:content-type:content-transfer-encoding:list-help :list-id:list-post:list-subscribe:reply-to:list-unsubscribe; s= sysmsg-1; t=1666256154; bh=J5ls/F0tHbvzBolktytRHOyMPejPV9QZCQuLm 0ysCSk=; b=GNiA4uqePQTziehZksUV2IW+WbsSwW7b3yjY/Z2vsJD3fBtJRYVhM C79wwVIpl/9hkOC+gO7KuM7Nhwa/PMHfLgMnCgnCnFa9SjhIne5w8Fs+2KKOySqw OoVRbfWuRa82PKjg5Hy5QqveU6KpCXopfDiCfVeMl1aqovulCUpGTk= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1666256154; b=lylv5JXhWW4yhYn902T7NX4YJ0gYMtDynYoahFQZ/Ji6YnSZRW Cysf4CaRqOWdwlmaY8TuxMFIJIyWQGCBjwT22gZaU42n2F31Ctrl0ohurKkUMIc0 UMuRNpTNfHPJL1nXfUQrIAV0HFhcgnsCBoqtTS0tRifxoMv9LVdioMjao= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=prosimetrum.com; spf=pass smtp.mailfrom=umbraticus@prosimetrum.com smtp.helo=asquith.prosimetrum.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=prosimetrum.com; iprev=pass smtp.remote-ip=125.236.209.157 (asquith.prosimetrum.com); spf=pass smtp.mailfrom=umbraticus@prosimetrum.com smtp.helo=asquith.prosimetrum.com; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=asquith.prosimetrum.com policy.ptr=asquith.prosimetrum.com; x-return-mx=pass header.domain=prosimetrum.com policy.is_org=yes (MX Records found: asquith.prosimetrum.com); x-return-mx=pass smtp.domain=prosimetrum.com policy.is_org=yes (MX Records found: asquith.prosimetrum.com); x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=message-id :date:from:to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:list-help:list-id:list-post :list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t= 1666256154; x=1666342554; bh=J5ls/F0tHbvzBolktytRHOyMPejPV9QZCQu Lm0ysCSk=; b=VVsU4gwOHMhyJOwE/LpuzNpKSWj/hPfHg0avS3Wr3EI0QlovzyZ bNtBYID9pmtRlc6bNshP9oxVYlWoL9wRcUwrPTKirIefHjJLl8maVwZD78CqvQdk OebRk9eQacocpIYefW3FmXZo/RrtrxCzqwnIWQ2sWcTmeYZLSOMAVZpI= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id E9C7AD4E1E for <9fans@9fans.net>; Thu, 20 Oct 2022 04:55:43 -0400 (EDT) (envelope-from umbraticus@prosimetrum.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 076CB5E5D4B; Thu, 20 Oct 2022 04:55:43 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1666256143; b=FFbWORGoDo8CTsmJWFLYFm6gGBLDbyYF6BZLg3TNhfFXWdWPzC bwF2vis6MRx8b4Wz6/AtUHA0293xCUnTO75migzOJe/7ptM/9Fw/DvLBnxBzvGzr u5aQn7FuGAAbYChG4OL5F8DbBMTteC5YimSCAsybK1V+os8KAcegK5OSijlPlvbW 8JVx7z9hph19CWZexFfJdpevWRdHwQg+XUJ59JrgSwIA5K9GRhx+V5+IVAyfXl71 zW2wW5tc2kjYZ9K3flD/HKCsUwQet9TlX8Nq5dVs7ncNlmoCadUekRdB3UAazefr kYpt1E4lyX83AEAZiIpoESeEjIqaHQ59yVuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:date:from:to:subject:in-reply-to :mime-version:content-type:content-transfer-encoding; s=arcseal; t=1666256143; bh=ge8++7tmTd0+EyIWLbCYhkDzvBFU5Dtzzc7Qsl/P9jQ=; b= YBM8Z5h8MhG8Spr2eKyuG8RUleuBuYsQXrkp3NPBPoS3MLuDSpMZtw36LDJQOOFW 96+n1T/A2dAsbA6WcpgbRaafDb08/Kl9d5gpObTOWEtayF1id8daRst7ap4F+Cr0 TxAtdl1QttJ9iX/8ZOxNDRjuIXnRxPTcuxI80zvdSbIv46m3MJo74FVlRw4uBL2e 7FR4KnzE2+fl2S499lRb0cx8QivS83byZjNTf09vX1FQxbbgNlNThB+lCYHH0a9a dQkPWDfBhzMUlLLCFZLj//lxwYX9RemjGGPJbCXMCUovqBV1NNLzAEsf0AoS6Z+r +a1t/NBHP//72FC/RCQDWg== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=prosimetrum.com; iprev=pass smtp.remote-ip=125.236.209.157 (asquith.prosimetrum.com); spf=pass smtp.mailfrom=umbraticus@prosimetrum.com smtp.helo=asquith.prosimetrum.com; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=asquith.prosimetrum.com policy.ptr=asquith.prosimetrum.com; x-return-mx=pass header.domain=prosimetrum.com policy.is_org=yes (MX Records found: asquith.prosimetrum.com); x-return-mx=pass smtp.domain=prosimetrum.com policy.is_org=yes (MX Records found: asquith.prosimetrum.com); x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeliedgtdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkfffhvf fujgggtgfgsehtkeejtddttdejnecuhfhrohhmpehumhgsrhgrthhitghushesphhrohhs ihhmvghtrhhumhdrtghomhenucggtffrrghtthgvrhhnpeehudelteefieekjeduffeltd evhefgvdefjedvtdejheejgeefheffvdeihfejffenucfkphepuddvhedrvdefiedrvddt ledrudehjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvd ehrddvfeeirddvtdelrdduheejpdhhvghloheprghsqhhuihhthhdrphhrohhsihhmvght rhhumhdrtghomhdpmhgrihhlfhhrohhmpeeouhhmsghrrghtihgtuhhssehprhhoshhimh gvthhruhhmrdgtohhmqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (prosimetrum.com: 125.236.209.157 is authorized to use 'umbraticus@prosimetrum.com' in 'mfrom' identity (mechanism 'mx' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="umbraticus@prosimetrum.com"; helo=asquith.prosimetrum.com; client-ip=125.236.209.157 Received: from asquith.prosimetrum.com (asquith.prosimetrum.com [125.236.209.157]) by tb-mx0.topicbox.com (Postfix) with ESMTP for <9fans@9fans.net>; Thu, 20 Oct 2022 04:55:41 -0400 (EDT) (envelope-from umbraticus@prosimetrum.com) Message-ID: <63C9218A73720FBF83C58AB34B4E8116@prosimetrum.com> Date: Thu, 20 Oct 2022 21:56:09 +1300 From: umbraticus@prosimetrum.com To: 9fans@9fans.net Subject: Re: [9fans] use of plumber for new rule In-Reply-To: <16661858650.19CAe129.83221@composer.9fans.topicbox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: fe11b18c-5054-11ed-8ac9-ea4df45f9e9b Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UY2U3Mzg1ZmU1MmM1MzJkNi1NZTM0N2FkYjM1MDQ1NmNmZjY1NzU2?= =?UTF-8?B?NjIwPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Me347adb350456cff65756620:1:ZluB4ZfXAtF6bfUIW9504XgI7_ttRvgqmeU8uXUYxSA Here's my rule for manpages: data matches (.+)\(([0-9])\) arg isfile /sys/man/$2/$1 plumb start rc -c 'man -t '$2' '$1' | plumb -id image' which replumbs the cmd output to the image port; then: dst is image plumb to image plumb client rc -c 'window -r 380 0 1600 900 ''echo -n page >/dev/label; bi= nd /dev/mordor /dev/label; page -i -p180 -m64''' either sends it to any existing page instance or else starts a new one to send it to. Worth noting I am using 9front's version of page, which listens on the image port; can't recall if the original listens on the postscript port in a similar way: probably. If you just want to pop open a new window with your dvi each time you can use a plumb start rule that does whatever you want; something like: data matches '([a-zA-Z=C2=A1-=EF=BF=BD0-9_\-.,/]+)\.(dvi|DVI)' arg isfile $0 plumb start window kertex/dvips $0 '|' page There are other workflows too, if what you want is a tight loop for editing a document and seeing the new version. Some people use a watch(1) program that runs a command whenever a given file changes. I prefer to tie the file write and doc gen to a single command using (9front) sam's ^ cmd, which sends its output to sam's command window: ^echo w; window troff $% '|' page The last shell command is remembered, so subsequent write'n'reviews are a simple ^ thereafter. umbraticus ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tce7385fe52c532d6-Me347a= db350456cff65756620 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription