モジュール
- FileUtils (33)
- Kernel (44)
-
OpenSSL
:: ASN1 (22) - Process (11)
キーワード
- cmp (11)
-
compare
_ file (11) - daemon (11)
- identical? (11)
- spawn (44)
検索結果
先頭5件
-
OpenSSL
:: ASN1 . # Null(value) -> OpenSSL :: ASN1 :: Null -> OpenSSL :: ASN1 :: Null (18328.0) -
ASN.1 の Null 型の値を表現する Ruby のオブジェクトを 生成します。
...ASN.1 の Null 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::Null.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(nilのみ)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@... -
OpenSSL
:: ASN1 . # Null(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: Null (18228.0) -
ASN.1 の Null 型の値を表現する Ruby のオブジェクトを 生成します。
...ASN.1 の Null 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::Null.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(nilのみ)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@... -
Kernel
. # spawn(env , program , *args , options={}) -> Integer (19.0) -
引数を外部コマンドとして実行しますが、生成した 子プロセスの終了を待ち合わせません。生成した子プロセスのプロセスIDを返します。
...指定できます。
//emlist[][ruby]{
pid = spawn(command, :in=>"/dev/null") # read mode
pid = spawn(command, :out=>"/dev/null") # write mode
pid = spawn(command, :err=>"log") # write mode
pid = spawn(command, 3=>"/dev/null") # read mode
//}
stdout と stderr をリダイレクトした場合は... -
Kernel
. # spawn(program , *args) -> Integer (19.0) -
引数を外部コマンドとして実行しますが、生成した 子プロセスの終了を待ち合わせません。生成した子プロセスのプロセスIDを返します。
...指定できます。
//emlist[][ruby]{
pid = spawn(command, :in=>"/dev/null") # read mode
pid = spawn(command, :out=>"/dev/null") # write mode
pid = spawn(command, :err=>"log") # write mode
pid = spawn(command, 3=>"/dev/null") # read mode
//}
stdout と stderr をリダイレクトした場合は... -
FileUtils
. # cmp(file _ a , file _ b) -> bool (7.0) -
ファイル file_a と file_b の内容が同じなら真を返します。
...ファイル file_a と file_b の内容が同じなら真を返します。
@param file_a ファイル名。
@param file_b ファイル名。
//emlist[][ruby]{
require 'fileutils'
FileUtils.cmp('somefile', 'somefile') #=> true
FileUtils.cmp('/dev/null', '/dev/urandom') #=> false
//}... -
FileUtils
. # compare _ file(file _ a , file _ b) -> bool (7.0) -
ファイル file_a と file_b の内容が同じなら真を返します。
...ファイル file_a と file_b の内容が同じなら真を返します。
@param file_a ファイル名。
@param file_b ファイル名。
//emlist[][ruby]{
require 'fileutils'
FileUtils.cmp('somefile', 'somefile') #=> true
FileUtils.cmp('/dev/null', '/dev/urandom') #=> false
//}... -
FileUtils
. # identical?(file _ a , file _ b) -> bool (7.0) -
ファイル file_a と file_b の内容が同じなら真を返します。
...ファイル file_a と file_b の内容が同じなら真を返します。
@param file_a ファイル名。
@param file_b ファイル名。
//emlist[][ruby]{
require 'fileutils'
FileUtils.cmp('somefile', 'somefile') #=> true
FileUtils.cmp('/dev/null', '/dev/urandom') #=> false
//}... -
Process
. # daemon(nochdir = nil , noclose = nil) -> 0 (7.0) -
プロセスから制御端末を切り離し、 バックグラウンドにまわってデーモンとして動作させます。
...この動作は抑制され、
カレントディレクトリは移動しません。
標準入力・標準出力・標準エラー出力を /dev/null にリダイレクトします。
ただし noclose に真を指定したときにはこの動作は抑制され、
リダイレクトは行なわ... -
Kernel
. # spawn(command , options={}) -> Integer (4.0) -
引数を外部コマンドとして実行しますが、生成した 子プロセスの終了を待ち合わせません。生成した子プロセスのプロセスIDを返します。
引数を外部コマンドとして実行しますが、生成した
子プロセスの終了を待ち合わせません。生成した子プロセスのプロセスIDを返します。
=== 引数の解釈
この形式では command が shell のメタ文字
//emlist{
* ? {} [] <> () ~ & | \ $ ; ' ` " \n
//}
を含む場合、shell 経由で実行されます。
そうでなければインタプリタから直接実行されます。
@param command コマンドを文字列で指定します。
@param env 更新する環境変数を表す Hash
@param options オプションパラメータ Hash... -
Kernel
. # spawn(env , command , options={}) -> Integer (4.0) -
引数を外部コマンドとして実行しますが、生成した 子プロセスの終了を待ち合わせません。生成した子プロセスのプロセスIDを返します。
引数を外部コマンドとして実行しますが、生成した
子プロセスの終了を待ち合わせません。生成した子プロセスのプロセスIDを返します。
=== 引数の解釈
この形式では command が shell のメタ文字
//emlist{
* ? {} [] <> () ~ & | \ $ ; ' ` " \n
//}
を含む場合、shell 経由で実行されます。
そうでなければインタプリタから直接実行されます。
@param command コマンドを文字列で指定します。
@param env 更新する環境変数を表す Hash
@param options オプションパラメータ Hash...