440件ヒット
[1-100件を表示]
(0.099秒)
ライブラリ
- ビルトイン (29)
- shell (153)
-
shell
/ builtin-command (48) -
shell
/ command-processor (84) -
shell
/ filter (6) -
shell
/ process-controller (48) -
shell
/ system-command (6) - shellwords (33)
- socket (11)
- win32ole (22)
クラス
- Dir (29)
- Shell (153)
-
Shell
:: AppendFile (6) -
Shell
:: AppendIO (6) -
Shell
:: Cat (6) -
Shell
:: CommandProcessor (84) -
Shell
:: Concat (6) -
Shell
:: Echo (6) -
Shell
:: Filter (6) -
Shell
:: Glob (6) -
Shell
:: ProcessController (48) -
Shell
:: SystemCommand (6) -
Shell
:: Tee (6) -
Shell
:: Void (6) - Socket (11)
-
WIN32OLE
_ TYPELIB (11) -
WIN32OLE
_ VARIANT (11)
モジュール
- Shellwords (33)
キーワード
- [] (7)
- activate (6)
-
active
_ process _ controllers (6) -
add
_ delegate _ command _ to _ shell (6) -
alias
_ command (18) -
alias
_ map (6) -
block
_ output _ synchronize (6) - cascade (6)
- cascade= (6)
- cd (6)
- debug (6)
- debug= (6)
- debug? (6)
-
debug
_ output _ exclusive _ unlock (3) -
debug
_ output _ lock (6) -
debug
_ output _ locked? (6) -
debug
_ output _ synchronize (6) -
debug
_ output _ try _ lock (6) -
debug
_ output _ unlock (6) -
def
_ builtin _ commands (6) -
def
_ system _ command (12) -
default
_ record _ separator (6) -
default
_ record _ separator= (6) -
default
_ system _ path (6) -
default
_ system _ path= (6) -
each
_ active _ object (6) - escape (11)
- getservbyport (11)
- glob (22)
- inactivate (6)
- initialize (6)
-
install
_ builtin _ commands (6) -
install
_ system _ commands (12) - join (11)
-
method
_ added (6) - new (100)
- notify (6)
-
process
_ controllers _ exclusive (6) -
run
_ config (6) - split (11)
-
unalias
_ command (12) -
undef
_ system _ command (12) - verbose (6)
- verbose= (6)
- verbose? (6)
-
wait
_ to _ finish _ all _ process _ controllers (6)
検索結果
先頭5件
-
Shell
. install _ system _ commands(pre = "sys _ ") -> () (26165.0) -
system_path上にある全ての実行可能ファイルをShellに定義する. メソッ ド名は元のファイル名の頭にpreをつけたものとなる.
...をShellに定義する. メソッ
ド名は元のファイル名の頭にpreをつけたものとなる.
@param pre Shellに定義するメソッド名の先頭に付加される文字列を指定します。
使用例: ls -l | head -n 5 のような例。
require 'shell'
Shell.install_syste......m_commands
sh = Shell.new
sh.verbose = false
sh.transact {
(sys_ls("-l") | sys_head("-n 5")).each {|l|
puts l
}
}... -
Shell
. alias _ command(alias , command , *opts) { . . . } -> self (23265.0) -
コマンドの別名(エイリアス)を作成します。 コマンドが無い場合は、Shell.def_system_command などであらかじめ作成します.
...Shell.def_system_command などであらかじめ作成します.
@param alias エイリアスの名前を文字列で指定します.
@param command コマンド名を文字列で指定します.
@param opts command で指定したコマンドのオプションを指定します.
使用例: 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) -> () (23261.0) -
commandのaliasを削除します.
...aliasを削除します.
@param alias 削除したいエイリアスの名前を文字列で指定します。
@raise NameError alias で指定したコマンドが無い場合に発生します。
使用例: 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("lsla")
begin
Shell.unalias_command("lsla")
rescue NameError => err
puts err
end... -
Shell
. default _ system _ path -> Array (23147.0) -
Shellでもちいられるコマンドを検索する対象のパスを設定および、参照します。
...
Shellでもちいられるコマンドを検索する対象のパスを設定および、参照します。
@param path Shellでもちいられるコマンドを検索する対象のパスを文字列で指定します。
動作例
require 'shell'
p Shell.default_system_path
# 例
#=> [......"/opt/local/bin", "/opt/local/sbin", "/usr/bin", "/bin", "/usr/sbin", "/sbin", "/usr/local/bin", "/usr/X11/bin", "/Users/kouya/bin"]
Shell.default_system_path = ENV["HOME"] + "/bin"
p Shell.default_system_path
# => "/Users/kouya/bin"... -
Shell
. default _ system _ path=(path) (23147.0) -
Shellでもちいられるコマンドを検索する対象のパスを設定および、参照します。
...
Shellでもちいられるコマンドを検索する対象のパスを設定および、参照します。
@param path Shellでもちいられるコマンドを検索する対象のパスを文字列で指定します。
動作例
require 'shell'
p Shell.default_system_path
# 例
#=> [......"/opt/local/bin", "/opt/local/sbin", "/usr/bin", "/bin", "/usr/sbin", "/sbin", "/usr/local/bin", "/usr/X11/bin", "/Users/kouya/bin"]
Shell.default_system_path = ENV["HOME"] + "/bin"
p Shell.default_system_path
# => "/Users/kouya/bin"... -
Shell
. default _ record _ separator -> String (23113.0) -
執筆者募集
...執筆者募集
Shell で用いられる入力レコードセパレータを表す文字列を設定および参照します。
なにも指定しない場合は$/ の値が用いられます。
@param rs Shell で用いられる入力レコードセパレータを表す文字列を指定しま... -
Shell
. default _ record _ separator=(rs) (23113.0) -
執筆者募集
...執筆者募集
Shell で用いられる入力レコードセパレータを表す文字列を設定および参照します。
なにも指定しない場合は$/ の値が用いられます。
@param rs Shell で用いられる入力レコードセパレータを表す文字列を指定しま... -
Shell
. debug _ output _ exclusive _ unlock { . . . } -> Mutex | nil (23101.0) -
@todo
...@todo
@see Mutex#exclusive_unlock... -
Shell
. debug _ output _ lock -> Mutex (23101.0) -
@todo
...@todo
@see Mutex#lock......@todo
@see Thread::Mutex#lock... -
Shell
. debug _ output _ locked? -> bool (23101.0) -
@todo
...@todo
@see Mutex#locked?......@todo
@see Thread::Mutex#locked?... -
Shell
. debug _ output _ try _ lock -> bool (23101.0) -
@todo
...@todo
@see Mutex#try_lock......@todo
@see Thread::Mutex#try_lock... -
Shell
. debug _ output _ unlock -> Mutex | nil (23101.0) -
@todo
...@todo
@see Mutex#unlock......@todo
@see Thread::Mutex#unlock... -
Shell
:: ProcessController . wait _ to _ finish _ all _ process _ controllers -> () (21201.0) -
@todo
@todo -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (20244.0) -
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... -
Shell
. new(pwd = Dir . pwd , umask = nil) -> Shell (20218.0) -
プロセスのカレントディレクトリをpwd で指定されたディレクトリとするShellオ ブジェクトを生成します.
...プロセスのカレントディレクトリをpwd で指定されたディレクトリとするShellオ
ブジェクトを生成します.
@param pwd プロセスのカレントディレクトリをpwd で指定されたディレクトリとします。
指定しない場合は、Dir.... -
Shell
. def _ system _ command(command , path = command) -> nil (20189.0) -
Shell のメソッドとして command を登録します.
...
Shell のメソッドとして command を登録します.
OS上のコマンドを実行するにはまず, Shellのメソッドとして定義します.
注) コマンドを定義しなくとも直接実行できる Shell#system コマンドもあります.
@param command Shell のメソッド......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
. cd(path = nil , verbose = self . verbose) -> self (20129.0) -
pathをカレントディレクトリとするShellオブジェクトを生成します.
...クトリとするShellオブジェクトを生成します.
@param path カレントディレクトリとするディレクトリを文字列で指定します。
@param verbose true を指定すると冗長な出力を行います。
使用例
require 'shell'
sh = Shell.new
sh.cd("/tmp")... -
Shell
. cascade -> bool (20101.0) -
@todo
@todo