[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ex API
- From: Chris Marrin <chris@...>
- Date: Tue, 14 Feb 2006 10:13:55 -0800
Mark Edgar wrote:
...
I don't see how pipe() and system() work together. Maybe you mean
popen(), which is kind of a cross between pipe() and system(), handling
the common cases of writing to a process's stdin, and reading from a
process's stdout. With both io.pipe() and os.spawn(), one could write a
pure Lua implementation of io.popen().
Yes, sorry, I meant that sometimes I find popen() to be useful for
executing external programs, and at other times I find system() useful
for that purpose.
--
chris marrin ,""$,
chris@marrin.com b` $ ,,.
mP b' , 1$'
,.` ,b` ,` :$$'
,|` mP ,` ,mm
,b" b" ,` ,mm m$$ ,m ,`P$$
m$` ,b` .` ,mm ,'|$P ,|"1$` ,b$P ,` :$1
b$` ,$: :,`` |$$ ,` $$` ,|` ,$$,,`"$$ .` :$|
b$| _m$`,:` :$1 ,` ,$Pm|` ` :$$,..;"' |$:
P$b, _;b$$b$1" |$$ ,` ,$$" ``' $$
```"```'" `"` `""` ""` ,P`
"As a general rule,don't solve puzzles that open portals to Hell"'