File: c.rb

package info (click to toggle)
ruby-systemu 2.6.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 164 kB
  • sloc: ruby: 525; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 286 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
#
# of course stdin can be supplied too.  synonyms for 'stdin' include '0' and
# 0.  the other stdio streams have similar shortcuts
#
  require 'systemu'

  cat = %q( ruby -e"  ARGF.each{|line| puts line}  " )

  status = systemu cat, 0=>'the stdin for cat', 1=>stdout=''
  puts stdout