1014件ヒット
[1-100件を表示]
(0.199秒)
ライブラリ
- ビルトイン (48)
-
irb
/ cmd / pushws (24) - optparse (96)
- rake (12)
-
rubygems
/ command (72) - shell (84)
-
shell
/ builtin-command (18) -
shell
/ command-processor (390) -
shell
/ error (6) -
shell
/ filter (96) -
shell
/ process-controller (30) -
shell
/ system-command (102)
クラス
-
Gem
:: Command (72) -
IRB
:: ExtendCommand :: PushWorkspace (12) - OptionParser (96)
- Shell (84)
-
Shell
:: BuiltInCommand (12) -
Shell
:: CommandProcessor (390) -
Shell
:: Filter (96) -
Shell
:: ProcessController (30) -
Shell
:: SystemCommand (96)
キーワード
- < (6)
- > (6)
- >> (6)
- BuiltInCommand (6)
- CommandNotFound (6)
- NoDelegateMethods (6)
- PushWorkspace (12)
- SystemCommand (6)
- [] (18)
- active? (12)
-
add
_ delegate _ command _ to _ shell (6) -
add
_ schedule (6) -
alias
_ command (18) - append (6)
- atime (6)
- basename (6)
- begins? (12)
- cat (18)
-
check
_ point (6) - chmod (6)
- chown (6)
- concat (6)
- ctime (6)
-
def
_ builtin _ commands (6) -
def
_ system _ command (12) - defaults (12)
- defaults= (12)
- delete (6)
- directory? (6)
- dirname (6)
- each (6)
- echo (18)
- executable? (6)
-
executable
_ real? (6) - execute (12)
- exist? (6)
- exists? (6)
-
find
_ system _ command (18) -
finish
_ all _ jobs (6) - flush (6)
- foreach (6)
- ftype (6)
- glob (18)
- identical? (6)
- initialize (6)
- input= (6)
-
install
_ builtin _ commands (6) -
install
_ system _ commands (12) - join (6)
- kill (6)
-
kill
_ job (6) - lstat (6)
-
method
_ added (6) - mkdir (6)
- mtime (6)
- name (6)
- new (6)
- notify (18)
- on (96)
- open (6)
-
optparse
/ shellwords (12) - out (18)
- readlink (6)
- rename (6)
- rm (6)
- rmdir (6)
-
ruby 1
. 9 feature (12) - setgid? (6)
- setuid? (6)
- sfork (6)
-
shell
/ builtin-command (6) -
shell
/ system-command (6) - size (6)
- size? (6)
- socket? (6)
- spawn (48)
-
specific
_ extra _ args _ hash (12) - split (6)
- start (6)
-
start
_ export (6) -
start
_ import (6) -
start
_ job (6) - stat (6)
- sticky? (6)
-
super
_ each (6) - system (18)
- tee (18)
- terminate (6)
-
terminate
_ job (6) - test (18)
-
to
_ a (6) -
to
_ s (6) - transact (18)
- truncate (6)
-
undef
_ system _ command (12) - unlink (6)
- utime (6)
- wait? (12)
-
world
_ writable? (6) - writable? (6)
-
writable
_ real? (6) - | (6)
検索結果
先頭5件
-
Shell
:: SystemCommand # command -> String (27201.0) -
@todo
...@todo
コマンド名を返します。... -
Shell
:: CommandProcessor . add _ delegate _ command _ to _ shell(id) (24301.0) -
@todo
...@todo
Shell 自体を初期化する時に呼び出されるメソッドです。
ユーザが使用することはありません。
@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'
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... -
Shell
. def _ system _ command(command , path = command) -> nil (15461.0) -
Shell のメソッドとして command を登録します.
...
Shell のメソッドとして command を登録します.
OS上のコマンドを実行するにはまず, Shellのメソッドとして定義します.
注) コマンドを定義しなくとも直接実行できる Shell#system コマンドもあります.
@param command Shell のメソッド......am path command のパスを指定します。
指定しない場合は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
# find _ system _ command(command) (15302.0) -
@todo
...@todo...