153件ヒット
[1-100件を表示]
(0.033秒)
ライブラリ
- shell (153)
キーワード
-
alias
_ command (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
_ system _ command (6) -
default
_ record _ separator (6) -
default
_ record _ separator= (6) -
default
_ system _ path (6) -
default
_ system _ path= (6) -
install
_ system _ commands (6) - new (6)
- notify (6)
-
unalias
_ command (6) -
undef
_ system _ command (6) - verbose (6)
- verbose= (6)
- verbose? (6)
検索結果
先頭5件
-
Shell
. debug _ output _ exclusive _ unlock { . . . } -> Mutex | nil (24.0) -
@todo
...@todo
@see Mutex#exclusive_unlock... -
Shell
. debug _ output _ lock -> Mutex (24.0) -
@todo
...@todo
@see Mutex#lock......@todo
@see Thread::Mutex#lock... -
Shell
. debug _ output _ locked? -> bool (24.0) -
@todo
...@todo
@see Mutex#locked?......@todo
@see Thread::Mutex#locked?... -
Shell
. debug _ output _ synchronize (24.0) -
@todo
...@todo
@see Mutex#synchronize......@todo
@see Thread::Mutex#synchronize... -
Shell
. debug _ output _ try _ lock -> bool (24.0) -
@todo
...@todo
@see Mutex#try_lock......@todo
@see Thread::Mutex#try_lock... -
Shell
. debug _ output _ unlock -> Mutex | nil (24.0) -
@todo
...@todo
@see Mutex#unlock......@todo
@see Thread::Mutex#unlock... -
Shell
. alias _ command(alias , command , *opts) { . . . } -> self (20.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
. cascade -> bool (18.0) -
@todo
...@todo... -
Shell
. cascade=(flag) (18.0) -
@todo
...@todo... -
Shell
. debug -> bool | Integer (18.0) -
@todo
...@todo
デバッグ用フラグを参照します。... -
Shell
. debug? -> bool | Integer (18.0) -
@todo
...@todo
デバッグ用フラグを参照します。... -
Shell
. notify(*opts) {|message| . . . } -> String (18.0) -
@todo
...@todo... -
Shell
. verbose -> bool (18.0) -
@todo
...@todo... -
Shell
. verbose? -> bool (18.0) -
@todo
...@todo... -
Shell
. cd(path = nil , verbose = self . verbose) -> self (14.0) -
pathをカレントディレクトリとするShellオブジェクトを生成します.
...クトリとするShellオブジェクトを生成します.
@param path カレントディレクトリとするディレクトリを文字列で指定します。
@param verbose true を指定すると冗長な出力を行います。
使用例
require 'shell'
sh = Shell.new
sh.cd("/tmp")... -
Shell
. def _ system _ command(command , path = command) -> nil (14.0) -
Shell のメソッドとして command を登録します.
...
Shell のメソッドとして command を登録します.
OS上のコマンドを実行するにはまず, Shellのメソッドとして定義します.
注) コマンドを定義しなくとも直接実行できる Shell#system コマンドもあります.
@param command Shell のメソッド......コマンドを文字列で指定します。
@param path command のパスを指定します。
指定しない場合はcommand と同じになります。
例)
require 'shell'
Shell.def_system_command "ls"
# ls を定義
Shell.def_system_command "sys_sort", "sort"
# sort... -
Shell
. new(pwd = Dir . pwd , umask = nil) -> Shell (14.0) -
プロセスのカレントディレクトリをpwd で指定されたディレクトリとするShellオ ブジェクトを生成します.
...れたディレクトリとするShellオ
ブジェクトを生成します.
@param pwd プロセスのカレントディレクトリをpwd で指定されたディレクトリとします。
指定しない場合は、Dir.pwd が使用されます。
@param umask ファイル作成の... -
Shell
. unalias _ command(alias) -> () (14.0) -
commandのaliasを削除します.
...ます.
@param alias 削除したいエイリアスの名前を文字列で指定します。
@raise NameError alias で指定したコマンドが無い場合に発生します。
使用例: ls -la | sort -k 5 のような例。
require 'shell'
Shell.def_system_command("ls")
Shell.alias_co......mmand("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...