Re: Second instance

new topic     » goto parent     » topic index » view thread      » older message » newer message
jimcbrown said...
ghaberek said...

Unfortunately, Euphoria currently lacks a cross-platform library for

controlling processes.

Not true. There is std/pipeio.e

The Pipe I/O library is only useful if you simply want to start a process and then forget about it.

Until we can determine the status of the process we started, I don't see it as terribly useful.

This is the type of loop we'll need if we want Pipe I/O to be useful:

atom p = process:exec( "my command" ) 
 
while process:is_running( p ) do 
 
    sequence data = process:read( p ) 
    -- do stuff 
 
end while 
jimcbrown said...
ghaberek said...

Unfortunately, Euphoria currently lacks a cross-platform library for

enumerating

processes.

True. Though this is really easy on most flavors of nix - just search the files in /proc

Yes, but it's inherently more complicated on Windows, as we know many things there are.

I suppose get_process_list() is just something that needs to go on the "wishlist" of features for Euphoria.

-Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu