378件ヒット
[1-100件を表示]
(0.010秒)
クラス
- 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)
モジュール
- Shellwords (33)
キーワード
- 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)
- inactivate (6)
- initialize (6)
-
install
_ builtin _ commands (6) -
install
_ system _ commands (12) - join (11)
-
method
_ added (6) - new (78)
- 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
. alias _ command(alias , command , *opts) { . . . } -> self (3.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
. cascade -> bool (3.0) -
@todo
@todo -
Shell
. cascade=(flag) (3.0) -
@todo
@todo -
Shell
. cd(path = nil , verbose = self . verbose) -> self (3.0) -
pathをカレントディレクトリとするShellオブジェクトを生成します.
...クトリとするShellオブジェクトを生成します.
@param path カレントディレクトリとするディレクトリを文字列で指定します。
@param verbose true を指定すると冗長な出力を行います。
使用例
require 'shell'
sh = Shell.new
sh.cd("/tmp")... -
Shell
. debug -> bool | Integer (3.0) -
@todo
@todo
デバッグ用フラグを参照します。 -
Shell
. debug=(val) (3.0) -
デバッグ用のフラグを設定します。
デバッグ用のフラグを設定します。
@param val bool 値や整数値を指定します。詳細は下記を参照してください。
# debug: true -> normal debug
# debug: 1 -> eval definition debug
# debug: 2 -> detail inspect debug -
Shell
. debug? -> bool | Integer (3.0) -
@todo
@todo
デバッグ用フラグを参照します。 -
Shell
. debug _ output _ exclusive _ unlock { . . . } -> Mutex | nil (3.0) -
@todo
@todo
@see Mutex#exclusive_unlock -
Shell
. debug _ output _ lock -> Mutex (3.0) -
@todo
@todo
@see Mutex#lock@todo
@see Thread::Mutex#lock -
Shell
. debug _ output _ locked? -> bool (3.0) -
@todo
@todo
@see Mutex#locked?@todo
@see Thread::Mutex#locked? -
Shell
. debug _ output _ synchronize (3.0) -
@todo
@todo
@see Mutex#synchronize@todo
@see Thread::Mutex#synchronize -
Shell
. debug _ output _ try _ lock -> bool (3.0) -
@todo
@todo
@see Mutex#try_lock@todo
@see Thread::Mutex#try_lock -
Shell
. debug _ output _ unlock -> Mutex | nil (3.0) -
@todo
@todo
@see Mutex#unlock@todo
@see Thread::Mutex#unlock -
Shell
. def _ system _ command(command , path = command) -> nil (3.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
. default _ record _ separator -> String (3.0) -
執筆者募集
...執筆者募集
Shell で用いられる入力レコードセパレータを表す文字列を設定および参照します。
なにも指定しない場合は$/ の値が用いられます。
@param rs Shell で用いられる入力レコードセパレータを表す文字列を指定しま... -
Shell
. default _ record _ separator=(rs) (3.0) -
執筆者募集
...執筆者募集
Shell で用いられる入力レコードセパレータを表す文字列を設定および参照します。
なにも指定しない場合は$/ の値が用いられます。
@param rs Shell で用いられる入力レコードセパレータを表す文字列を指定しま... -
Shell
. default _ system _ path -> Array (3.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) (3.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"...