From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2765 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Steve Litt Newsgroups: gmane.comp.sysutils.supervision.general Subject: Does execline natively do arithmetic and branching Date: Thu, 19 Dec 2019 08:03:17 -0500 Message-ID: <20191219080317.0b93894d@mydesk.domain.cxm> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="205076"; mail-complaints-to="usenet@blaine.gmane.org" To: "supervision@list.skarnet.org" Original-X-From: supervision-return-2354-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Dec 19 14:03:31 2019 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1ihvSi-000r7W-2s for gcsg-supervision@m.gmane.org; Thu, 19 Dec 2019 14:03:28 +0100 Original-Received: (qmail 12524 invoked by uid 89); 19 Dec 2019 13:03:52 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Original-Received: (qmail 12517 invoked from network); 19 Dec 2019 13:03:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; h=X-Originating-IP:Date:From:To:Subject:Message-ID:X-Mailer:MIME-Version:Content-Type:Content-Transfer-Encoding; s=default; d=troubleshooters.com; b=gy9zmlSVqzktFFpKTQzcd21uf84umd5Z9ERMZiSBVOcYriTW0LjBoWDTH405t1ZGFHki6aLhTMAPDUSmSi3t/f7iUS+KGSDMIxnGr1ZhDF0paFI9OKC1RVxk6VA36nAG9oetYmGkWftJtxm26cppQkMt5dFLT9P6/gnHIBj+sX0=; DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; d=troubleshooters.com; s=default; t=1576760598; bh=vh1RlYFmTQZIf/m4NjzbjLQ6AIw=; l=524; h=X-Originating-IP:Date:From:To:Subject:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; b=heL+YKmEuME97I/E97rPOYXvoNHD1SnX6skZGCfTr6iT/fGu1nyIQT6MKm2tEpzCP 7wf8Xshw+qdLexDP2QoV/YjsOpKb+rjHt6Wq7BR1pVnA550KT9ZI0ptPDgMq09w7vO 0elaqw09l1LjxDM6mS0vCR7G/UMgq0xpo9tYH6oo= X-Originating-IP: [72.188.224.222] X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2765 Archived-At: Hi all, I'm messing around with execline, in the hopes that in long tight loops it can be faster than /bin/sh. Now I want to do incrementing and other add/subtract. Is there any kind of native way, or do I need to backtick dc? Second question: Is there a way to find out whether a variable is ten or above without using execline's ifthenelse to query the test executable? Thanks, SteveT Steve Litt December 2019 featured book: Rapid Learning for the 21st Century http://www.troubleshooters.com/rl21