Return to KLUBNL.PL main page

rsgb_lf_group
[Top] [All Lists]

Re: LF: Testing Audioinjector Octo with RPi3

To: rsgb_lf_group@blacksheep.org
Subject: Re: LF: Testing Audioinjector Octo with RPi3
From: Paul Nicholson <vlf0403@abelian.org>
Date: Sat, 10 Feb 2018 14:22:53 +0000
Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=abelian.org ; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: 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=CPqywLyCOsBon1T9yARdXvcRnAKLAYKvkNtLo39qClg=; b=ME9EStyxx/2XRTUKB21FsM7n2B Q5Y17YDi9wgZgRg217gAqt14hz58yuqbrKvEDd/hgPPP1M+40H05HiTnFSadMbTMo0KBMR5Uyy9o1 dAnEkOEfIavnuzPIFCRCTHQs7J67EnwlUMVgXmlEhUeQvpSBXmKemKf3Z+TCCQegElhw=;
In-reply-to: <6eced61e-a7ce-2935-195d-4a76f375b11e@freenet.de>
References: <dca12b9c-c401-1338-38ff-feed1f7088db@abelian.org> <a54b5744-244a-59c2-cc43-b553635714b2@abelian.org> <52dea779-7aae-aff8-1072-ad24cdcd007c@freenet.de> <CAA8k23T1s6w8y8A1dGEnnezQju6pEAEkbGLcCwy_ThG7NkwAcw@mail.gmail.com> <4024a3ab-eb61-7801-e9ad-5715c5f49546@abelian.org> <c0eb61ff-f1b4-e214-e954-13e4ef2e1a4b@sky.com> <f6fa06b4-b0e7-a898-65c0-22c84e46b742@abelian.org> <cd0c32ac-76ef-589d-aeea-4b6b25d484d4@freenet.de> <9a7cf91a-5643-9149-28a7-ce6d282db3e9@abelian.org> <1555f07a-f2a3-fb55-c246-f52442a1a723@freenet.de> <4ac6d43f-85c7-bd05-85b9-5b64ebcfbf35@abelian.org> <2f6a408a-af27-9c9b-b116-7becd9b1c66f@abelian.org> <6eced61e-a7ce-2935-195d-4a76f375b11e@freenet.de>
Reply-to: rsgb_lf_group@blacksheep.org
Sender: owner-rsgb_lf_group@blacksheep.org
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
Not a named pipe, but an anonymous pipe to or from another process.

popen() is a lot like fopen() except that it opens a
handle to stdin or stdout of an asynchronous process.

Eg

 FILE *f;
 f = popen( "ssh pi@rp5 vtread -T 2018-02-09_12:00,+6h /raw", "r");

would launch ssh and hook its stdout to the handle *f;

Then fread() on f in the usual way and pclose() when done.
A very common pattern in unix.

So simple, and SL could read signal from arbitrary sources
with it.

But I guess Borland can't support it if the OS doesn't provide it.

I just looked through M$ documentation, there is a way to do it
but it's horrible.  Truly horrible and I wished I hadn't looked.
Whenever I look at MSDN pages, I feel ill for a while, several
hours sometimes.

The first page looks promising until you read the fine print,


https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/popen-wpopen

and you have to go to here to witness the full horror of it

 https://msdn.microsoft.com/library/windows/desktop/ms682499

All that to replace one line of code in a proper operating system?
Windows is just awful, awful beyond words.

How anyone can get anything useful out of it I don't know.
There are two good ways to render a computer useless.  One is to
drive over it with a truck, the other is to install Windows.

--
Paul Nicholson
--

<Prev in Thread] Current Thread [Next in Thread>