[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fifo
From: |
Mike Miller |
Subject: |
Re: fifo |
Date: |
Wed, 5 Jun 2013 11:31:08 -0400 |
On Wed, Jun 5, 2013 at 05:17:44 -0700, MrOba wrote:
> Hello.
> Playing with a fifo..
> Am I doing something wrong?
The load command only supports regular files. If you want to read data
from a socket or a fifo I think you will have to use C-style I/O:
http://www.gnu.org/software/octave/doc/interpreter/C_002dStyle-I_002fO-Functions.html
And when creating the fifo as you did:
> octave:1> mkfifo( "testfifo", 666 )
> ans = 0
> octave:2> ls -l
> ...
> p-w---x--T 1 oba oba 0 Jun 5 12:02 testfifo
Octave does not convert the second argument from octal, so try
octave> mkfifo ("testfifo", base2dec ("666", 8))
to at least create the fifo with the correct file permissions that you intended.
octave> ls -l testfifo
prw-r--r-- 1 mike mike 0 Jun 5 11:20 testfifo
HTH,
--
mike
- fifo, MrOba, 2013/06/05
- Re: fifo,
Mike Miller <=
- Re: fifo, MrOba, 2013/06/06
- Re: fifo, MrOba, 2013/06/06
- Re: fifo, Mike Miller, 2013/06/06
- Re: fifo, MrOba, 2013/06/07
- Re: fifo, MrOba, 2013/06/07
- Re: fifo, Mike Miller, 2013/06/07