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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12564 invoked from network); 23 Jun 2023 12:30:39 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 23 Jun 2023 12:30:39 -0000 Received: (qmail 28378 invoked by uid 89); 23 Jun 2023 12:31:04 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 28371 invoked from network); 23 Jun 2023 12:31:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687523435; x=1690115435; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:date:from:from:to:cc:subject :date:message-id:reply-to; bh=guligLc/kyZMy8/EBYzMDzFRibUQzVzc2duzM09GSW8=; b=AuJXFAWuxNSkBqUyUA9+UrJnkSVsyj+LoaBXpsug8qggv16KJLLdfSvegx/nYRFvV2 A9QvSfSlFa3Qf8Pgs47urNCSrfoVVC3RX5w7JvHetB53NqGDP5geVk+QPfDQNivGmrs9 nvl2fan3aanqX+I3ZDcTeh+FUaAuaoJzhCW9Om1JMsEfRMzmW+5KiU5hwup2d00GfOJ/ KHs4Z53aTsHHmtv2qMJkUqxd03HZ8H1fTQqJnWmD4AG0sMJGXKQ0w42jHarJg4b3jeOy M6fsGxebGduyiiKlu5PElqlY9i2NB5MMJ7XQlx5QDG8Xf24KZP2VdrgFjti1OIqepp8K kwUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687523435; x=1690115435; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:date:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=guligLc/kyZMy8/EBYzMDzFRibUQzVzc2duzM09GSW8=; b=FPGEhTw6x1CC3VuW/SXmvTus50tRYW6pcAukpnTmlv0Q8h9JfCdM1YN5JRtqR2MEIl RU2pbDdiEBOorHEGOSZ3PobIXgSutuuucZmbHoegzv9uzwLby5Zh4Vs0dI3zxtlX0dZ3 pItF5JrjUgUw5fn284OzZIOhGR9zNSbwAJnm4lXi8dmO+hhMeHfz6V+z7tRv46QYOJeW IbNhnCDTqsz8hHOItLBzk013cWfjo2y95CgrEInYE50OiK9r9kpZHaMDrug2mmwzqhqF lroC74zT2e6s7df+yvEOQM9JLi8evSfMtVdZKa56Fg/RcHuhmBzj69y1mv+sgu1ssTlo m2LA== X-Gm-Message-State: AC+VfDzNBwuvrCeaaUmApvTkctsWYWZg2l6D1ee6zxD5F/sT6K/QdFhc BV8Nd1Xv1gMPSQc/5OhTGaOfwEX/c3o= X-Google-Smtp-Source: ACHHUZ46lnbXGuuaQgkvF/QdqBlWQYiACDvDCvXQJ+kCfkNMZ+7m6h5Vm2hTnExFc9YvkL5Vzu9koQ== X-Received: by 2002:a05:6a20:1596:b0:10b:e54f:1c00 with SMTP id h22-20020a056a20159600b0010be54f1c00mr17588645pzj.57.1687523434996; Fri, 23 Jun 2023 05:30:34 -0700 (PDT) From: "Casper Ti. Vector" X-Google-Original-From: "Casper Ti. Vector" Date: Fri, 23 Jun 2023 20:30:30 +0800 To: supervision@list.skarnet.org Subject: Re: logging services with shell interaction Message-ID: Mail-Followup-To: supervision@list.skarnet.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Fri, Jun 23, 2023 at 01:48:53PM +0200, Ben Franksen wrote: > thanks for the heads-up; this is certainly an interesting project, but for > me to start playing with it only makes sense if and when it has matured to > the point where there is a minimum of documentation (-h/--help or something > like that) and ideally some sort of revision control, too. I may be (barely) > able to debug such low-level C code if I notice it misbehaving but to > reverse-engineer what it is supposed to do is beyond my abilities. The source code pasted above are indeed of a preview nature; the more formal documentation will probably be written in the internal testing here. recordln works quite like recordio and the command line usage are identical; the former is just more line-oriented. The command line usage of iotrap and ipctee are printed when `-h' is given; below is a brief summary of them. iotrap works like the trap program from execline, but the signals currently cannot be customised. When iotrap receives a terminating signal, the spawned subprocess is sent an EOF; after this, if the subprocess does not exit before the timeout tunable by the `-t' option, the previous signal is forwarded. ipctee listens to a pair of input and output sockets, the first accepts at most 1 connection and the latter multiple connections. (The input socket is for the IOC; the output socket is for "procServ clients".) For each connected client, the bytes it writes are forwarded to all other clients connected at the time. (You may realise ipctee is essentially a "chatting server" for all connected clients, and it may seem that ipctee can be furtherly simplified by eliminating the input socket and treating all clients fully equal. However, for certain use cases, we may disallow writes from the output socket; this is why there is a `-r' option for the "readonly" mode, and why the program is called "ipctee" not "ipcchat".) -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2024.09.30) 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C