別のキーワード
ライブラリ
- English (11)
- ビルトイン (365)
-
cgi
/ core (22) - csv (66)
- etc (11)
- expect (22)
-
io
/ wait (33) -
irb
/ output-method (22) -
minitest
/ unit (2) - monitor (11)
-
net
/ http (11) -
net
/ smtp (22) - open3 (77)
- openssl (22)
- rake (11)
-
rexml
/ document (121) -
rubygems
/ package / tar _ output (33) -
rubygems
/ user _ interaction (11) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (18) - stringio (44)
- thread (2)
- timeout (30)
- tracer (11)
-
webrick
/ cgi (11) - zlib (11)
クラス
-
ARGF
. class (22) - Array (19)
- CGI (22)
- CSV (55)
-
Gem
:: Package :: TarOutput (33) -
Gem
:: StreamUI (11) - IO (271)
-
IRB
:: StdioOutputMethod (11) -
MiniTest
:: Unit (2) -
MonitorMixin
:: ConditionVariable (11) -
Net
:: HTTP (11) -
Net
:: SMTP (22) - Object (22)
-
OpenSSL
:: SSL :: Session (22) -
RDoc
:: Options (22) -
REXML
:: AttlistDecl (11) -
REXML
:: Attribute (11) -
REXML
:: Declaration (11) -
REXML
:: DocType (11) -
REXML
:: Document (22) -
REXML
:: Element (11) -
REXML
:: Entity (11) -
REXML
:: ExternalEntity (11) -
REXML
:: Formatters :: Default (11) -
REXML
:: NotationDecl (11) -
Rake
:: Application (11) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (18) - String (11)
- StringIO (44)
-
Thread
:: ConditionVariable (11) - Tracer (11)
-
WEBrick
:: CGI (11) -
Zlib
:: GzipReader (11)
キーワード
-
$ DEFAULT _ OUTPUT (11) -
$ stdout (11) - > (6)
- >> (6)
- CSV (11)
-
NEWS for Ruby 2
. 2 . 0 (10) -
SC
_ TIMEOUTS (11) - STDOUT (11)
- StdioOutputMethod (11)
-
cgi
/ session (11) - close (11)
-
debug
_ output= (11) - display (11)
- expect (22)
- filter (33)
-
force
_ output (11) -
force
_ output= (11) - header (11)
- instance (22)
- new (11)
- open (11)
- output= (1)
- outs (11)
- pack (19)
- pack テンプレート文字列 (11)
-
pipeline
_ r (11) -
pipeline
_ rw (11) -
pipeline
_ w (22) - popen (154)
- popen2 (11)
- popen2e (11)
- popen3 (11)
- pread (7)
- print (11)
- read (22)
-
read
_ nonblock (33) - readpartial (44)
-
ruby 1
. 6 feature (11) - select (22)
-
set
_ debug _ output (22) - spawn (44)
- start (11)
- status (1)
- stdout (11)
- sysread (22)
- timeout (41)
- timeout= (11)
-
tty
_ output= (11) - unpack (11)
- wait (33)
-
wait
_ readable (11) -
wait
_ writable (11) - write (121)
検索結果
先頭5件
-
CGI
# out(options = "text / html") { . . . . } (18219.0) -
HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。
...す。
@param options Hash か文字列で HTTP ヘッダを生成するための情報を指定します。
例:
cgi = CGI.new
cgi.out{ "string" }
# Content-Type: text/html
# Content-Length: 6
#
# string
cgi.out("text/plain"){ "st......# Content-Length: 6
#
# string
cgi.out({"nph" => true,
"status" => "OK", # == "200 OK"
"server" => ENV['SERVER_SOFTWARE'],
"connection" => "close",
"type" => "text/html",... -
Shell
# out(dev = STDOUT , &block) -> () (18219.0) -
Shell#transact を呼び出しその結果を dev に出力します。
...@param dev 出力先をIO オブジェクトなどで指定します。
@param block transact 内部で実行するシェルを指定します。
使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {
system("ls"... -
Shell
:: CommandProcessor # out(dev = STDOUT , &block) -> () (18219.0) -
Shell#transact を呼び出しその結果を dev に出力します。
...@param dev 出力先をIO オブジェクトなどで指定します。
@param block transact 内部で実行するシェルを指定します。
使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {
system("ls"... -
Shell
:: Filter # out(dev = STDOUT , &block) -> () (18219.0) -
Shell#transact を呼び出しその結果を dev に出力します。
...@param dev 出力先をIO オブジェクトなどで指定します。
@param block transact 内部で実行するシェルを指定します。
使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {
system("ls"... -
IRB
:: StdioOutputMethod (12000.0) -
標準出力を表すクラスです。ライブラリ内部で使用します。
標準出力を表すクラスです。ライブラリ内部で使用します。 -
IO
. popen([env = {} , [cmdname , arg0] , *args , execopt={}] , mode = "r" , opt={}) -> IO (9315.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2......生成した IO オブジェクトを引数にブ
ロックを実行し、ブロックの実行結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
p IO.popen("cat", "r+") {|io|
io.puts "foo"
io.close_write
io.gets
}
#......のオプション
IO.popen(["ls", "/", :err=>[:child, :out]]) {|ls_io|
ls_result_with_error = ls_io.read
}
# 上と同じ、配列の外側でもオプションが指定できる
IO.popen(["ls", "/"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}
@param en... -
IO
. popen([env = {} , cmdname , *args , execopt={}] , mode = "r" , opt={}) -> IO (9315.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2......生成した IO オブジェクトを引数にブ
ロックを実行し、ブロックの実行結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
p IO.popen("cat", "r+") {|io|
io.puts "foo"
io.close_write
io.gets
}
#......のオプション
IO.popen(["ls", "/", :err=>[:child, :out]]) {|ls_io|
ls_result_with_error = ls_io.read
}
# 上と同じ、配列の外側でもオプションが指定できる
IO.popen(["ls", "/"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}
@param en... -
IO
. popen(env = {} , [[cmdname , arg0] , *args , execopt={}] , mode = "r" , opt={}) -> IO (9315.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2......生成した IO オブジェクトを引数にブ
ロックを実行し、ブロックの実行結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
p IO.popen("cat", "r+") {|io|
io.puts "foo"
io.close_write
io.gets
}
#......のオプション
IO.popen(["ls", "/", :err=>[:child, :out]]) {|ls_io|
ls_result_with_error = ls_io.read
}
# 上と同じ、配列の外側でもオプションが指定できる
IO.popen(["ls", "/"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}
@param en... -
IO
. popen(env = {} , [cmdname , *args , execopt={}] , mode = "r" , opt={}) -> IO (9315.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2......生成した IO オブジェクトを引数にブ
ロックを実行し、ブロックの実行結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
p IO.popen("cat", "r+") {|io|
io.puts "foo"
io.close_write
io.gets
}
#......のオプション
IO.popen(["ls", "/", :err=>[:child, :out]]) {|ls_io|
ls_result_with_error = ls_io.read
}
# 上と同じ、配列の外側でもオプションが指定できる
IO.popen(["ls", "/"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}
@param en... -
IO
. popen(env = {} , command , mode = "r" , opt={}) -> IO (9315.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2......生成した IO オブジェクトを引数にブ
ロックを実行し、ブロックの実行結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
p IO.popen("cat", "r+") {|io|
io.puts "foo"
io.close_write
io.gets
}
#......のオプション
IO.popen(["ls", "/", :err=>[:child, :out]]) {|ls_io|
ls_result_with_error = ls_io.read
}
# 上と同じ、配列の外側でもオプションが指定できる
IO.popen(["ls", "/"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}
@param en... -
IO
. select(reads , writes = [] , excepts = [] , timeout = nil) -> [[IO]] | nil (9249.0) -
select(2) を実行します。
...られた入力/出力/例外待ちの IO オブジェクトの中から準備ができたものを
それぞれ配列にして、配列の配列として返します。
タイムアウトした時には nil を返します。
@param reads 入力待ちする IO オブジェクトの配列を渡し......ます。
@param writes 出力待ちする IO オブジェクトの配列を渡します。
@param excepts 例外待ちする IO オブジェクトの配列を渡します。
@param timeout タイムアウトまでの時間を表す数値または nil を指定します。数値で指定したと......定した時には IO がどれかひとつレディ状態になるまで待ち続けます。
@raise IOError 与えられた IO オブジェクトが閉じられていた時に発生します。
@raise Errno::EXXX select(2) に失敗した場合に発生します。
rp, wp = IO.pipe
mesg = "pi...