るりまサーチ

最速Rubyリファレンスマニュアル検索!
1380件ヒット [1-100件を表示] (0.134秒)

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

キーワード

検索結果

<< 1 2 3 ... > >>

Shell::ProcessController#shell -> Shell (24219.0)

@todo

...@todo...

Shell#system(command, *opts) -> Shell::SystemCommand (23338.0)

command を実行する.

...る.

@
param command 実行するコマンドのパスを文字列で指定します。

@
param opts command のオプションを文字列で指定します。複数可。

使用例:

require 'shell'
Shell
.verbose = false
sh = Shell.new

print sh.system("ls", "-l")
Shell
.def_system_comma...
...nd("head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT...

Shell#tee(file) -> Shell::Filter (23326.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...lter オブジェクトを返します.

@
param file シェルコマンドtee に与えるファイル名を文字列で指定します。

動作例
require 'shell'
Shell
.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat...
...(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}...

Shell#utime(atime, mtime, *filename) -> Integer (23325.0)

File クラスにある同名のクラスメソッドと同じです.

...す.

@
param filename ファイル名を表す文字列を指定します。

@
param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。

@
param utime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。

@
see F...
...ile.utime...

Shell#process_controller -> Shell::ProcessController (23318.0)

@todo

...@todo...

絞り込み条件を変える

Shell#cat(*files) -> Shell::Filter (23226.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...を内容とする Filter オブジェクトを返します.

@
param files シェルコマンド cat に与えるファイル名を文字列で指定します。

動作例
require 'shell'
Shell
.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|...
...file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}...

Shell#concat(*jobs) -> Shell::Concat (23218.0)

@todo

...@todo...

Shell#atime(filename) -> Time (23213.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@
param filename ファイル名を表す文字列か IO オブジェクトを指定します。

@
see File.atime...

Shell#ctime(filename) -> Time (23213.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@
param filename ファイル名を表す文字列か IO オブジェクトを指定します。

@
see File.ctime...

Shell#delete(*filename) -> Integer (23213.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@
param filename ファイル名を表す文字列を指定します。

@
see File.delete...

絞り込み条件を変える

Shell#expand_path(path) -> String (23213.0)

Fileクラスにある同名のクラスメソッドと同じです.

...Fileクラスにある同名のクラスメソッドと同じです.

@
param path ファイル名を表す文字列を指定します。

@
see File.expand_path...

Shell#lstat(filename) -> File::Stat (23213.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@
param filename ファイル名を表す文字列を指定します。

@
see File.lstat...

Shell#mtime(filename) -> Time (23213.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@
param filename ファイル名を表す文字列か IO オブジェクトを指定します。

@
see File.mtime...

Shell#stat(filename) -> File::Stat (23213.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@
param filename ファイル名を表す文字列を指定します。

@
see File.stat...

Shell#out(dev = STDOUT, &block) -> () (23147.0)

Shell#transact を呼び出しその結果を dev に出力します。

...
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", "-l") | head("-n 3")
}
}...

絞り込み条件を変える

Shell#system_path -> Array (23119.0)

コマンドサーチパスの配列を返す。

...コマンドサーチパスの配列を返す。

@
param path コマンドサーチパスの配列を指定します。

使用例

require 'shell'
sh = Shell.new
sh.system_path = [ "./" ]
p sh.system_path #=> ["./"]...

Shell#system_path=(path) (23119.0)

コマンドサーチパスの配列を返す。

...コマンドサーチパスの配列を返す。

@
param path コマンドサーチパスの配列を指定します。

使用例

require 'shell'
sh = Shell.new
sh.system_path = [ "./" ]
p sh.system_path #=> ["./"]...
<< 1 2 3 ... > >>