2 # systemu can be used on any platform to return status, stdout, and stderr of
3 # any command. unlike other methods like open3/popen4 there is zero danger of
4 # full pipes or threading issues hanging your process or subprocess.
8 date = %q( ruby -e" t = Time.now; STDOUT.puts t; STDERR.puts t " )
10 status, stdout, stderr = systemu date
11 p [ status, stdout, stderr ]