42件ヒット
[1-42件を表示]
(0.026秒)
別のキーワード
種類
- 特異メソッド (24)
- インスタンスメソッド (18)
クラス
- Shell (6)
-
Shell
:: CommandProcessor (30) -
Shell
:: SystemCommand (6)
キーワード
-
def
_ system _ command (6) -
find
_ system _ command (6) -
install
_ system _ commands (6) - kill (6)
- system (6)
-
undef
_ system _ command (12)
検索結果
先頭5件
- Shell
:: CommandProcessor . install _ system _ commands(prefix = "sys _ ") -> () - Shell
:: CommandProcessor # system(command , *opts) -> Shell :: SystemCommand - Shell
:: CommandProcessor # find _ system _ command(command) - Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () - Shell
:: CommandProcessor . undef _ system _ command(command) -> self
-
Shell
:: CommandProcessor . install _ system _ commands(prefix = "sys _ ") -> () (9208.0) -
全てのシステムコマンドをメソッドとして定義します。
...義します。
既に定義されているコマンドを再定義することはありません。
デフォルトでは全てのコマンドに "sys_" というプレフィクスが付きます。
また、メソッド名として使用できない文字は全て "_" に置換してメソッド... -
Shell
:: CommandProcessor # system(command , *opts) -> Shell :: SystemCommand (9201.0) -
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 # find _ system _ command(command) (9101.0) -
@todo
@todo -
Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () (9101.0) -
@todo
@todo
与えられたコマンドをメソッドとして定義します。
@param command 定義したいコマンドを指定します。
@param path command のパスを指定します。省略すると環境変数 PATH から command を探します。 -
Shell
:: CommandProcessor . undef _ system _ command(command) -> self (9101.0) -
与えられたコマンドを削除します。
与えられたコマンドを削除します。
@param command 削除したいコマンド名を指定します。 -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (6202.0) -
commandを削除します.
...mmand 削除するコマンドの文字列を指定します。
動作例:
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
}
}
r... -
Shell
:: SystemCommand # kill(signal) -> Integer (3007.0) -
自身のプロセスにシグナルを送ります。
...signal シグナルを整数かその名前の文字列で指定します。
負の値を持つシグナル(あるいはシグナル名の前に-)を指定すると、
プロセスではなくプロセスグループにシグナルを送ります。
@see Process.#kill...