Sha256: a0823b86ef48918308890b4dd82aa129c9fa53f6b0b66bc6cd6e42a5d113c144

Contents?: true

Size: 394 Bytes

Versions: 24

Compression:

Stored size: 394 Bytes

Contents

#
# systemu can be used on any platform to return status, stdout, and stderr of
# any command.  unlike other methods like open3/popen4 there is zero danger of
# full pipes or threading issues hanging your process or subprocess.
#
  require 'systemu'

  date = %q( ruby -e"  t = Time.now; STDOUT.puts t; STDERR.puts t  " )

  status, stdout, stderr = systemu date
  p [ status, stdout, stderr ]

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
systemu-2.6.5 samples/a.rb
systemu-2.6.4 samples/a.rb
systemu-2.6.3 samples/a.rb
systemu-2.6.2 samples/a.rb
systemu-2.6.1 samples/a.rb
systemu-2.6.0 samples/a.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/systemu-2.5.2/samples/a.rb
systemu-2.5.2 samples/a.rb
systemu-2.5.1 samples/a.rb
openvz-1.5 lib/openvz/vendor/systemu/samples/a.rb
systemu-2.5.0 samples/a.rb
openvz-1.4 lib/openvz/vendor/systemu/samples/a.rb
systemu-2.4.2 samples/a.rb
systemu-2.4.1 samples/a.rb
openvz-1.2 lib/openvz/vendor/systemu/samples/a.rb
openvz-1.1 lib/openvz/vendor/systemu/samples/a.rb
systemu-2.4.0 samples/a.rb
systemu-2.3.1 samples/a.rb
systemu-2.3.0 samples/a.rb
systemu-2.2.0 samples/a.rb