るりまサーチ

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

別のキーワード

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

モジュール

検索結果

<< 1 2 3 ... > >>

Shell::SystemCommand#command -> String (27201.0)

@todo

...@todo

コマンド名を返します。...

Shell::CommandProcessor.add_delegate_command_to_shell(id) (24301.0)

@todo

...@todo

Sh
ell 自体を初期化する時に呼び出されるメソッドです。
ユーザが使用することはありません。

@param id メソッド名を指定します。...

FileUtils#sh(*cmd) {|result, status| ... } (21225.0)

与えられたコマンドを実行します。

...参照してください。


例:
sh
%{ls -ltr}

sh
'ls', 'file with spaces'

# check exit status after command runs
sh
%{grep pattern file} do |ok, res|
if ! ok
puts "pattern not found (status = #{res.exitstatus})"
end
end

@see Kernel.#exec, Kernel.#system...

Shell::SystemCommand#terminate -> () (21200.0)

@todo

...@todo...

Shell::CommandProcessor.def_system_command(command, path = command) -> () (18421.0)

@todo

...@todo

与えられたコマンドをメソッドとして定義します。

@param command 定義したいコマンドを指定します。

@param path command のパスを指定します。省略すると環境変数 PATH から command を探します。...

絞り込み条件を変える

Shell::CommandProcessor.def_builtin_commands(delegation_class, commands_specs) -> () (18400.0)

@todo

...@todo

@param delegation_class 処理を委譲したいクラスかモジュールを指定します。

@param commands_specs コマンドの仕様を文字列の配列で指定します。
[[コマンド名, [引数1, 引数2, ...]], ...]...

Shell::CommandProcessor.undef_system_command(command) -> self (18308.0)

与えられたコマンドを削除します。

...与えられたコマンドを削除します。

@param command 削除したいコマンド名を指定します。...

Shell::CommandProcessor#find_system_command(command) (18302.0)

@todo

...@todo...

Shell::Filter#find_system_command(command) (18302.0)

@todo

...@todo...

Shell::CommandProcessor.install_builtin_commands -> () (18200.0)

ビルトインコマンドを定義します。

ビルトインコマンドを定義します。

絞り込み条件を変える

Shell::CommandProcessor.install_system_commands(prefix = "sys_") -> () (18200.0)

全てのシステムコマンドをメソッドとして定義します。

全てのシステムコマンドをメソッドとして定義します。

既に定義されているコマンドを再定義することはありません。
デフォルトでは全てのコマンドに "sys_" というプレフィクスが付きます。
また、メソッド名として使用できない文字は全て "_" に置換してメソッドを定義します。
このメソッドの実行中に発生した例外は単に無視されます。

@param prefix プレフィクスを指定します。

shell/builtin-command (18000.0)

Shell で使用するビルトインコマンドを定義しているライブラリです。

...Shell で使用するビルトインコマンドを定義しているライブラリです。...

shell/system-command (18000.0)

Shell.undef_system_command(command) -> Shell::CommandProcessor (15548.0)

commandを削除します.

...
command
を削除します.

@param command 削除するコマンドの文字列を指定します。

動作例:
require 'shell'
Sh
ell.def_system_command("ls")
# ls を定義
Sh
ell.undef_system_command("ls")
# ls を 削除

sh
= Shell.new
begin
sh
.transact {
ls("-l").each...
...{|l|
puts l
}
}
rescue NameError => err
puts err
end...

Shell.def_system_command(command, path = command) -> nil (15461.0)

Shell のメソッドとして command を登録します.

...
Sh
ell のメソッドとして command を登録します.

OS上のコマンドを実行するにはまず, Shellのメソッドとして定義します.
注) コマンドを定義しなくとも直接実行できる Shell#system コマンドもあります.

@param command Shell のメソッド...
...am path command のパスを指定します。
指定しない場合はcommand と同じになります。

例)
require 'shell'
Sh
ell.def_system_command "ls"
# ls を定義

Sh
ell.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#find_system_command(command) (15302.0)

@todo

...@todo...
<< 1 2 3 ... > >>