ライブラリ
- ビルトイン (324)
- etc (264)
- open3 (108)
- pathname (12)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - socket (24)
クラス
- File (12)
-
File
:: Stat (12) - IO (180)
- Pathname (12)
-
RDoc
:: Options (12) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Socket (12)
モジュール
- Etc (252)
- FileTest (12)
- Kernel (120)
- Open3 (108)
-
Socket
:: Constants (12)
キーワード
- Mac OS X (12)
-
NEWS for Ruby 3
. 0 . 0 (5) -
PC
_ 2 _ SYMLINKS (12) -
PC
_ ALLOC _ SIZE _ MIN (12) -
PC
_ ASYNC _ IO (12) -
PC
_ CHOWN _ RESTRICTED (12) -
PC
_ FILESIZEBITS (12) -
PC
_ LINK _ MAX (12) -
PC
_ MAX _ CANON (12) -
PC
_ MAX _ INPUT (12) -
PC
_ NAME _ MAX (12) -
PC
_ NO _ TRUNC (12) -
PC
_ PATH _ MAX (12) -
PC
_ PIPE _ BUF (12) -
PC
_ PRIO _ IO (12) -
PC
_ REC _ INCR _ XFER _ SIZE (12) -
PC
_ REC _ MAX _ XFER _ SIZE (12) -
PC
_ REC _ MIN _ XFER _ SIZE (12) -
PC
_ REC _ XFER _ ALIGN (12) -
PC
_ SYMLINK _ MAX (12) -
PC
_ SYNC _ IO (12) -
PC
_ TIMESTAMP _ RESOLUTION (12) -
PC
_ VDISABLE (12) -
SO
_ NOSIGPIPE (24) - advise (12)
- eof (12)
- eof? (12)
- exec (48)
- fork (24)
- pathconf (12)
- pid (12)
- pipe? (66)
- pipeline (12)
-
pipeline
_ r (24) -
pipeline
_ rw (24) -
pipeline
_ start (24) -
pipeline
_ w (24) - rdoc (12)
- readpartial (12)
-
ruby 1
. 8 . 4 feature (12) -
rubygems
/ commands / dependency _ command (12) - select (12)
- shell (6)
- spawn (48)
検索結果
先頭5件
-
RDoc
:: Options # pipe -> bool (18217.0) -
コマンドライン引数の --pipe オプションを指定していた場合、true を返しま す。そうでない場合は false を返します。
...コマンドライン引数の --pipe オプションを指定していた場合、true を返しま
す。そうでない場合は false を返します。... -
Pathname
# pipe? -> bool (6223.0) -
FileTest.pipe?(self.to_s) と同じです。
...FileTest.pipe?(self.to_s) と同じです。
@see FileTest.#pipe?... -
FileTest
. # pipe?(file) -> bool (6219.0) -
指定したファイルがパイプである時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...。
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@raise IOError 指定された IO オブジェクト file が既に close されていた場合に発生します。
例:
r, w = IO.pipe
FileTest.pipe?(r) # => true
FileTest.pipe?(w) # => true... -
File
. pipe?(path) -> bool (6217.0) -
FileTest.#pipe? と同じです。
...FileTest.#pipe? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
Open3
. # pipeline(*cmds) -> [Process :: Status] (6212.0) -
指定したコマンドのリストをパイプで繋いで順番に実行します。
...のコマンドは
以下のように String か Array で指定します。
commandline にはコマンド全体(例. "nroff -man")を表す
String を指定します。
options には Hash で指定します。
env には環境変数を H......sr/share/man/man1/ruby.1.gz"
p Open3.pipeline(["zcat", fname], "nroff -man", "less")
#=> [#<Process::Status: pid 11817 exit 0>,
# #<Process::Status: pid 11820 exit 0>,
# #<Process::Status: pid 11828 exit 0>]
例2:
require "open3"
Open3.pipeline([{"LANG"=>"C"}, "env"], ["grep", "... -
Open3
. # pipeline _ r(*cmds) -> [IO , [Thread]] (6212.0) -
指定したコマンドのリストをパイプで繋いで順番に実行します。最後の コマンドの標準出力を受けとる事ができます。
...のコマンドは
以下のように String か Array で指定します。
commandline にはコマンド全体(例. "nroff -man")を表す
String を指定します。
options には Hash で指定します。
env には環境変数を H......の配列を配列で返します。
例:
require "open3"
Open3.pipeline_r("yes", "head -10") {|r, ts|
p r.read #=> "y\ny\ny\ny\ny\ny\ny\ny\ny\ny\n"
p ts[0].value #=> #<Process::Status: pid 24910 SIGPIPE (signal 13)>
p ts[1].value #=> #<Process::Status: pid 24913 exit 0>... -
Open3
. # pipeline _ r(*cmds) {|last _ stdout , wait _ thrs| . . . } -> () (6212.0) -
指定したコマンドのリストをパイプで繋いで順番に実行します。最後の コマンドの標準出力を受けとる事ができます。
...のコマンドは
以下のように String か Array で指定します。
commandline にはコマンド全体(例. "nroff -man")を表す
String を指定します。
options には Hash で指定します。
env には環境変数を H......の配列を配列で返します。
例:
require "open3"
Open3.pipeline_r("yes", "head -10") {|r, ts|
p r.read #=> "y\ny\ny\ny\ny\ny\ny\ny\ny\ny\n"
p ts[0].value #=> #<Process::Status: pid 24910 SIGPIPE (signal 13)>
p ts[1].value #=> #<Process::Status: pid 24913 exit 0>... -
Open3
. # pipeline _ rw(*cmds) -> [IO , IO , [Thread]] (6212.0) -
指定したコマンドのリストをパイプで繋いで順番に実行します。最初の コマンドの標準入力に書き込む事も最後のコマンドの標準出力を受けとる事も できます。
...のコマンドは
以下のように String か Array で指定します。
commandline にはコマンド全体(例. "nroff -man")を表す
String を指定します。
options には Hash で指定します。
env には環境変数を H......実行したプロセスを待つため
のスレッドの配列を配列で返します。
例:
require "open3"
Open3.pipeline_rw("sort", "cat -n") {|stdin, stdout, wait_thrs|
stdin.puts "foo"
stdin.puts "bar"
stdin.puts "baz"
# sortコマンドにEOFを送る... -
Open3
. # pipeline _ rw(*cmds) {|first _ stdin , last _ stdout , wait _ thrs| . . . } -> () (6212.0) -
指定したコマンドのリストをパイプで繋いで順番に実行します。最初の コマンドの標準入力に書き込む事も最後のコマンドの標準出力を受けとる事も できます。
...のコマンドは
以下のように String か Array で指定します。
commandline にはコマンド全体(例. "nroff -man")を表す
String を指定します。
options には Hash で指定します。
env には環境変数を H......実行したプロセスを待つため
のスレッドの配列を配列で返します。
例:
require "open3"
Open3.pipeline_rw("sort", "cat -n") {|stdin, stdout, wait_thrs|
stdin.puts "foo"
stdin.puts "bar"
stdin.puts "baz"
# sortコマンドにEOFを送る...