別のキーワード
ライブラリ
- English (60)
- ビルトイン (228)
-
cgi
/ core (12) -
cgi
/ session (12) - csv (60)
-
irb
/ context (12) -
irb
/ output-method (96) -
minitest
/ unit (1) -
net
/ http (12) -
net
/ pop (12) -
net
/ smtp (24) -
net
/ telnet (4) - nkf (12)
- prettyprint (60)
- psych (12)
- rake (48)
- readline (12)
-
rexml
/ document (156) - rss (24)
-
rubygems
/ package / tar _ output (84) - shell (33)
-
shell
/ process-controller (6) - socket (12)
- win32ole (36)
- zlib (12)
クラス
- CGI (12)
-
CGI
:: Session (12) - CSV (48)
-
Encoding
:: Converter (60) -
Gem
:: Package :: TarOutput (72) - IO (168)
-
IRB
:: Context (12) -
IRB
:: OutputMethod (60) -
IRB
:: StdioOutputMethod (12) -
MiniTest
:: Unit (1) -
Net
:: HTTP (12) -
Net
:: POP3 (12) -
Net
:: SMTP (24) -
Net
:: Telnet (4) - PrettyPrint (60)
-
RDoc
:: Options (24) -
REXML
:: Attribute (12) -
REXML
:: Declaration (12) -
REXML
:: DocType (12) -
REXML
:: Document (24) -
REXML
:: Element (12) -
REXML
:: ExternalEntity (12) -
REXML
:: Formatters :: Default (12) -
REXML
:: NotationDecl (12) -
Rake
:: Application (24) - Shell (33)
-
Shell
:: ProcessController (6) - UNIXSocket (12)
-
WIN32OLE
_ PARAM (36)
モジュール
- Kernel (60)
-
RSS
:: RootElementMixin (24) - Rake (24)
- Readline (12)
キーワード
-
$ DEFAULT _ OUTPUT (12) -
$ OFS (12) -
$ ORS (12) -
$ OUTPUT _ FIELD _ SEPARATOR (12) -
$ OUTPUT _ RECORD _ SEPARATOR (12) - CSV (12)
- Default (12)
- Emitter (12)
-
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - NKF (12)
- Output (12)
- OutputMethod (12)
- Pretty (12)
- StdioOutputMethod (12)
- TarOutput (12)
- Transitive (12)
- ZStream (12)
-
add
_ gem _ contents (12) -
add
_ signatures (12) - application (12)
- application= (12)
-
block
_ output _ synchronize (6) - close (12)
-
debug
_ output= (12) -
debug
_ output _ exclusive _ unlock (3) -
debug
_ output _ lock (6) -
debug
_ output _ locked? (6) -
debug
_ output _ synchronize (6) -
debug
_ output _ try _ lock (6) -
debug
_ output _ unlock (6) - filter (36)
-
force
_ output (12) -
force
_ output= (12) - format (12)
- getoptlong (12)
- input? (12)
-
insert
_ output (12) -
irb
/ output-method (12) - new (76)
- open (12)
- output= (13)
- output? (12)
-
output
_ encoding (12) -
output
_ encoding= (12) - popen (168)
- pp (12)
- ppx (12)
- prettyprint (12)
-
primitive
_ convert (48) - print (36)
- printn (12)
- puts (12)
- rdoc (12)
-
rdoc
/ markup (12) - retval? (12)
- rss (12)
-
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 9 feature (12) -
rubygems
/ commands / specification _ command (12) -
rubygems
/ package / tar _ output (12) -
rubygems
/ security (12) -
send
_ io (12) -
set
_ debug _ output (36) -
singleline
_ format (12) -
tty
_ output= (12) - write (108)
検索結果
-
IO
. popen(env = {} , command , mode = "r" , opt={}) {|f| . . . } -> object (4.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
サブプロセスを実行し、そのプロセスの標準入出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2通りあります。文字列を指定する場合と配列を指定する場合です。
文字列の場合は、シェルを経由して子プロセスを実行し、
配列の場合は、シェルを経由せずに子プロセスを実行します。
...