138件ヒット
[1-100件を表示]
(0.084秒)
ライブラリ
- shell (42)
-
shell
/ builtin-command (48) -
shell
/ command-processor (6) -
shell
/ filter (6) -
shell
/ process-controller (6) -
shell
/ system-command (6) - win32ole (24)
クラス
- Shell (42)
-
Shell
:: AppendFile (6) -
Shell
:: AppendIO (6) -
Shell
:: Cat (6) -
Shell
:: CommandProcessor (6) -
Shell
:: Concat (6) -
Shell
:: Echo (6) -
Shell
:: Filter (6) -
Shell
:: Glob (6) -
Shell
:: ProcessController (6) -
Shell
:: SystemCommand (6) -
Shell
:: Tee (6) -
Shell
:: Void (6) -
WIN32OLE
_ TYPELIB (12) -
WIN32OLE
_ VARIANT (12)
キーワード
-
alias
_ command (6) - cd (6)
-
def
_ system _ command (6) -
install
_ system _ commands (6) -
unalias
_ command (6) -
undef
_ system _ command (6)
検索結果
先頭5件
-
Shell
. new(pwd = Dir . pwd , umask = nil) -> Shell (39219.0) -
プロセスのカレントディレクトリをpwd で指定されたディレクトリとするShellオ ブジェクトを生成します.
...プロセスのカレントディレクトリをpwd で指定されたディレクトリとするShellオ
ブジェクトを生成します.
@param pwd プロセスのカレントディレクトリをpwd で指定されたディレクトリとします。
指定しない場合は、Dir.... -
Shell
:: Filter . new(sh) -> Shell :: Filter (21219.0) -
Shell::Filter クラスのインスタンスを返します。 通常このメソッドを直接使う機会は少ないでしょう。
...
Shell::Filter クラスのインスタンスを返します。
通常このメソッドを直接使う機会は少ないでしょう。... -
Shell
:: ProcessController . new(shell) (21215.0) -
自身を初期化します。
...自身を初期化します。
@param shell Shell のインスタンスを指定します。... -
Shell
:: CommandProcessor . new(shell) (21203.0) -
@todo
@todo -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (21132.0) -
commandを削除します.
...and 削除するコマンドの文字列を指定します。
動作例:
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
}
}
res... -
Shell
:: AppendFile . new(sh , filename) (21102.0) -
@todo
@todo -
Shell
:: AppendIO . new(sh , filename) (21102.0) -
@todo
@todo -
Shell
:: Cat . new(sh , *filenames) (21102.0) -
@todo
@todo -
Shell
:: Concat . new(sh , *jobs) (21102.0) -
@todo
@todo -
Shell
:: Echo . new(sh , *strings) (21102.0) -
@todo
@todo -
Shell
:: Glob . new(sh , pattern) (21102.0) -
@todo
@todo -
Shell
:: SystemCommand . new(sh , command , *opts) (21102.0) -
@todo
@todo
@param sh
@param command
@param opts -
Shell
:: Tee . new(sh , filename) (21102.0) -
@todo
@todo -
Shell
:: Void . new(sh , *opts) (21102.0) -
-
Shell
. def _ system _ command(command , path = command) -> nil (21065.0) -
Shell のメソッドとして command を登録します.
...
Shell のメソッドとして command を登録します.
OS上のコマンドを実行するにはまず, Shellのメソッドとして定義します.
注) コマンドを定義しなくとも直接実行できる Shell#system コマンドもあります.
@param command Shell のメソッド......い場合は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")... -
Shell
. alias _ command(alias , command , *opts) { . . . } -> self (21053.0) -
コマンドの別名(エイリアス)を作成します。 コマンドが無い場合は、Shell.def_system_command などであらかじめ作成します.
...コマンドの別名(エイリアス)を作成します。
コマンドが無い場合は、Shell.def_system_command などであらかじめ作成します.
@param alias エイリアスの名前を文字列で指定します.
@param command コマンド名を文字列で指定します.
@param......を指定します.
使用例: ls -la | sort -k 5 のような例。
require 'shell'
Shell.def_system_command("ls")
Shell.alias_command("lsla", "ls", "-a", "-l")
Shell.def_system_command("sort")
sh = Shell.new
sh.transact {
(lsla | sort("-k 5")).each {|l|
puts l
}
}... -
Shell
. unalias _ command(alias) -> () (21049.0) -
commandのaliasを削除します.
...例。
require 'shell'
Shell.def_system_command("ls")
Shell.alias_command("lsla", "ls", "-a", "-l")
Shell.def_system_command("sort")
sh = Shell.new
sh.transact {
(lsla | sort("-k 5")).each {|l|
puts l
}
}
Shell.unalias_command("lsla")
begin
Shell.unalias_command("...