On Mon, Jan 9, 2017 at 1:04 PM, Willard Goosey <goo...@sdc.org> wrote:

> So I tried a clever trick and it didn't work.
>
> (This is NOT a bug report about any of the named programs, as it's a
> weird edge case.)
>
> So UNIX (and therefore Linux) has these things called "named
> pipes". They're like files, except that they're strictly buffers --
> you write something to one and it's only there until it's read.
>
> galvatron:~$ mkfifo foo
> galvatron:~$ date > foo &
> [1] 395
> galvatron:~$ date
> Mon Jan  9 13:52:21 MST 2017
> galvatron:~$ cat foo
> Mon Jan  9 13:52:23 MST 2017
> [1]+  Done                    date >foo
> galvatron:~$
>
> So, interestingly, note that the date written to the named pipe "foo"
> wasn't written until it was read!
>
> Just as an experiment, I created ~/root/DATE.DO as a named pipe and
> redirected date(1) into it... Then tried to read it from tsdos via the
> laddiealpha PDD server.
>
> The result: M100 visits Cold Start City.
>
> Not really surprising, something probably got confused by the fact
> that the named pipe is reported as a 0-length file.
>
>
Ugh. Possibilities...

0 length file issue
Short file issue

You might try a static file with the date and see if that works to see if
it's the pipe or the file.

But it might be the 0 length thing.

Another thing we could do is add a special file to LaddieAlpha that always
has the current date in it.

Like @DATE and @TIME. Something like that. I don't remember if NADSBox has
any special files.

-- John.

Reply via email to