477件ヒット
[1-100件を表示]
(0.030秒)
ライブラリ
- ビルトイン (48)
-
drb
/ extservm (12) - shell (153)
-
shell
/ builtin-command (48) -
shell
/ command-processor (84) -
shell
/ filter (6) -
shell
/ process-controller (48) -
shell
/ system-command (6) - shellwords (36)
- socket (12)
- win32ole (24)
クラス
-
DRb
:: ExtServManager (12) - Dir (36)
- 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 (12)
-
WIN32OLE
_ TYPELIB (12) -
WIN32OLE
_ VARIANT (12)
モジュール
- Process (12)
- Shellwords (36)
キーワード
- [] (12)
- 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)
- command (12)
- 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 (12)
- exec (12)
- getservbyport (12)
- glob (24)
- inactivate (6)
- initialize (6)
-
install
_ builtin _ commands (6) -
install
_ system _ commands (12) - join (12)
-
method
_ added (6) - new (102)
- notify (6)
-
process
_ controllers _ exclusive (6) -
run
_ config (6) - split (12)
-
unalias
_ command (12) -
undef
_ system _ command (12) - verbose (6)
- verbose= (6)
- verbose? (6)
-
wait
_ to _ finish _ all _ process _ controllers (6)
検索結果
先頭5件
-
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (17126.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
. new(pwd = Dir . pwd , umask = nil) -> Shell (17118.0) -
プロセスのカレントディレクトリをpwd で指定されたディレクトリとするShellオ ブジェクトを生成します.
...プロセスのカレントディレクトリをpwd で指定されたディレクトリとするShellオ
ブジェクトを生成します.
@param pwd プロセスのカレントディレクトリをpwd で指定されたディレクトリとします。
指定しない場合は、Dir.... -
Shell
. def _ system _ command(command , path = command) -> nil (17059.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 (17047.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
. default _ system _ path -> Array (17047.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) (17047.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
. unalias _ command(alias) -> () (17043.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("... -
Shell
. install _ system _ commands(pre = "sys _ ") -> () (17041.0) -
system_path上にある全ての実行可能ファイルをShellに定義する. メソッ ド名は元のファイル名の頭にpreをつけたものとなる.
...イルをShellに定義する. メソッ
ド名は元のファイル名の頭にpreをつけたものとなる.
@param pre Shellに定義するメソッド名の先頭に付加される文字列を指定します。
使用例: ls -l | head -n 5 のような例。
require 'shell'
Shell.install......_system_commands
sh = Shell.new
sh.verbose = false
sh.transact {
(sys_ls("-l") | sys_head("-n 5")).each {|l|
puts l
}
}... -
Shell
. cd(path = nil , verbose = self . verbose) -> self (17029.0) -
pathをカレントディレクトリとするShellオブジェクトを生成します.
...クトリとするShellオブジェクトを生成します.
@param path カレントディレクトリとするディレクトリを文字列で指定します。
@param verbose true を指定すると冗長な出力を行います。
使用例
require 'shell'
sh = Shell.new
sh.cd("/tmp")... -
Shell
. default _ record _ separator -> String (17013.0) -
執筆者募集
...執筆者募集
Shell で用いられる入力レコードセパレータを表す文字列を設定および参照します。
なにも指定しない場合は$/ の値が用いられます。
@param rs Shell で用いられる入力レコードセパレータを表す文字列を指定しま... -
Shell
. default _ record _ separator=(rs) (17013.0) -
執筆者募集
...執筆者募集
Shell で用いられる入力レコードセパレータを表す文字列を設定および参照します。
なにも指定しない場合は$/ の値が用いられます。
@param rs Shell で用いられる入力レコードセパレータを表す文字列を指定しま... -
Shell
. cascade -> bool (17001.0) -
@todo
@todo -
Shell
. cascade=(flag) (17001.0) -
@todo
@todo -
Shell
. debug -> bool | Integer (17001.0) -
@todo
@todo
デバッグ用フラグを参照します。 -
Shell
. debug=(val) (17001.0) -
デバッグ用のフラグを設定します。
デバッグ用のフラグを設定します。
@param val bool 値や整数値を指定します。詳細は下記を参照してください。
# debug: true -> normal debug
# debug: 1 -> eval definition debug
# debug: 2 -> detail inspect debug -
Shell
. debug? -> bool | Integer (17001.0) -
@todo
@todo
デバッグ用フラグを参照します。 -
Shell
. debug _ output _ exclusive _ unlock { . . . } -> Mutex | nil (17001.0) -
@todo
@todo
@see Mutex#exclusive_unlock -
Shell
. debug _ output _ lock -> Mutex (17001.0) -
@todo
@todo
@see Thread::Mutex#lock