lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


With vanilla Lua I can do

	local f = io.popen('cat /proc/cpuinfo') -- runs command
	local l = f:read("*a") -- read output of command
	f:close()

How do I get the output of a external program under nixio? It will be a
long running process, so i'll have to feed the filehandle to nixio.poll,
create an iterator, etc.

It will be under Linux, if that helps. I suppose I could do a
nixio.fork() followed by a nixio.execp(), but that gives me only the
pid... Where is the stdout for it?


Thanks in advance, 

Jorge