Return to KLUBNL.PL main page

rsgb_lf_group
[Top] [All Lists]

Re: LF: Testing Audioinjector Octo with RPi3

To: [email protected]
Subject: Re: LF: Testing Audioinjector Octo with RPi3
From: Paul Nicholson <[email protected]>
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: <[email protected]>
References: <[email protected]> <[email protected]> <[email protected]> <CAA8k23T1s6w8y8A1dGEnnezQju6pEAEkbGLcCwy_ThG7NkwAcw@mail.gmail.com> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]>
Reply-to: [email protected]
Sender: [email protected]
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>