42件ヒット
[1-42件を表示]
(0.146秒)
種類
- 特異メソッド (24)
- インスタンスメソッド (18)
ライブラリ
- shell (18)
-
shell
/ command-processor (18) -
shell
/ filter (6)
クラス
- Shell (18)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (6)
検索結果
先頭5件
- Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () - Shell
. def _ system _ command(command , path = command) -> nil - Shell
:: CommandProcessor # system(command , *opts) -> Shell :: SystemCommand - Shell
# system(command , *opts) -> Shell :: SystemCommand - Shell
:: Filter # system(command , *opts) -> Shell :: SystemCommand
-
Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () (33402.0) -
@todo
...@todo
与えられたコマンドをメソッドとして定義します。
@param command 定義したいコマンドを指定します。
@param path command のパスを指定します。省略すると環境変数 PATH から command を探します。... -
Shell
. def _ system _ command(command , path = command) -> nil (30432.0) -
Shell のメソッドとして command を登録します.
...す.
注) コマンドを定義しなくとも直接実行できる Shell#system コマンドもあります.
@param command Shell のメソッドとして定義するコマンドを文字列で指定します。
@param path command のパスを指定します。
指定しない場合......require 'shell'
Shell.def_system_command "ls"
# ls を定義
Shell.def_system_command "sys_sort", "sort"
# sortコマンドをsys_sortとして定義
sh = Shell.new
sh.transact {
ls.each { |l|
puts l
}
(ls("-l") | sys_sort("-k 5")).each {|l|
puts l
}
}... -
Shell
:: CommandProcessor # system(command , *opts) -> Shell :: SystemCommand (27525.0) -
command を実行する.
...@param command 実行するコマンドのパスを文字列で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system_command("......head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT... -
Shell
# system(command , *opts) -> Shell :: SystemCommand (24525.0) -
command を実行する.
...@param command 実行するコマンドのパスを文字列で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system_command("......head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT... -
Shell
:: Filter # system(command , *opts) -> Shell :: SystemCommand (24525.0) -
command を実行する.
...@param command 実行するコマンドのパスを文字列で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system_command("......head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT... -
Shell
:: CommandProcessor . undef _ system _ command(command) -> self (21301.0) -
与えられたコマンドを削除します。
...与えられたコマンドを削除します。
@param command 削除したいコマンド名を指定します。... -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (18419.0) -
commandを削除します.
...す.
@param command 削除するコマンドの文字列を指定します。
動作例:
require 'shell'
Shell.def_system_command("ls")
# ls を定義
Shell.undef_system_command("ls")
# ls を 削除
sh = Shell.new
begin
sh.transact {
ls("-l").each {|l|
puts l......}
}
rescue NameError => err
puts err
end...