Oddities in pipeio

new topic     » topic index » view thread      » older message » newer message

For my program, I needed the pipeio.e library, after reading the documentation, I decided to try an example from there. Neither in Euphoria, nor in OE, nor in Phix, it did not work in windows XP. By the way in Phix this library does not work without improvement

include std/pipeio.e as pipe 
integer i 
  object z = pipe:create()  
  object p = pipe:exec("dir", z)  
  if atom(p) then  
    sprintf("Failed to exec() with error %x", pipe:error_no()) 
 
  else 
	  object c = pipe:read(p[pipe:STDOUT], 6024) 	    	 
  end if  
  pipe:kill(p) 
?1/0 
i=getc(0) 

It does not work exactly for the "dir" command"

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu