RCR for child execution

Simon Strandgaard [mailto:0bz63fz3m1qt3001@sneakemail.com] says:

How about a System class instead ???

sys = System.new
sys.command "ls"
sys.arguments = [“existing”, “non-existing”]
sys.out my_stdout_handler
sys.error my_stderr_handler
sys.in my_stdin_handler
sys.run

hmm. I like this, very objective.
But I prefer to put command and args as arguments (very much like current
system method). So,

sys = System.new(“ls”, arg1, arg2,…)
sys.run

I could pause sys,

sys.stop

#Since, sys is an object, I could add/modify other things… while it’s on
standby :slight_smile:

or maybe query it like

sys.is_running?

Then start it again,

sys.start

Lastly, I could also kill sys,

sys.kill

ok, I admit I’m sleepy. I might still be dreaming :slight_smile:

Simon Strandgaard

kind regards -botp

···