ライブラリ
- ビルトイン (48)
- etc (72)
- shell (735)
-
shell
/ builtin-command (162) -
shell
/ command-processor (504) -
shell
/ error (30) -
shell
/ filter (480) -
shell
/ process-controller (150) -
shell
/ system-command (102) - shellwords (132)
- timeout (21)
クラス
- Array (12)
-
Etc
:: Passwd (24) - Shell (729)
-
Shell
:: AppendFile (12) -
Shell
:: AppendIO (12) -
Shell
:: BuiltInCommand (12) -
Shell
:: Cat (12) -
Shell
:: CommandProcessor (498) -
Shell
:: Concat (12) -
Shell
:: Echo (12) -
Shell
:: Filter (474) -
Shell
:: Glob (12) -
Shell
:: ProcessController (144) -
Shell
:: SystemCommand (96) -
Shell
:: Tee (12) -
Shell
:: Void (12) - String (24)
モジュール
- Etc (48)
- Kernel (48)
- Shellwords (84)
- Timeout (21)
キーワード
- + (6)
- < (6)
- > (6)
- >> (6)
- AppendFile (6)
- AppendIO (6)
- BuiltInCommand (6)
- CantApplyMethod (6)
- CantDefine (6)
- Cat (6)
- CommandNotFound (6)
- CommandProcessor (6)
- Concat (6)
- DirStackEmpty (6)
- Echo (6)
- Error (6)
- Filter (6)
- Glob (6)
- NoDelegateMethods (6)
- ProcessController (6)
-
SC
_ SHARED _ MEMORY _ OBJECTS (12) -
SC
_ SHELL (12) -
SC
_ THREAD _ PROCESS _ SHARED (12) -
SC
_ XOPEN _ SHM (12) - Shell (6)
- Shellwords (12)
- SystemCommand (6)
- Tee (6)
-
USING
_ AT _ EXIT _ WHEN _ PROCESS _ EXIT (6) - Void (6)
- [] (18)
- activate (6)
- active? (12)
-
active
_ job? (6) -
active
_ jobs (6) -
active
_ jobs _ exist? (6) -
active
_ process _ controllers (6) -
add
_ delegate _ command _ to _ shell (6) -
add
_ schedule (6) -
alias
_ command (18) -
alias
_ map (6) - append (18)
- atime (18)
- basename (18)
-
block
_ output _ synchronize (6) - blockdev? (18)
- cascade (6)
- cascade= (6)
- cat (18)
- cd (12)
- chardev? (18)
- chdir (6)
-
check
_ point (18) - chmod (18)
- chown (18)
- command (6)
-
command
_ processor (6) - concat (18)
- ctime (18)
- cwd (6)
- debug (12)
- debug= (12)
- debug? (12)
-
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) - delete (18)
- dir (6)
-
dir
_ stack (6) - directory? (18)
- dirname (18)
- dirs (6)
- each (48)
-
each
_ active _ object (6) - echo (18)
- escape (12)
- executable? (18)
-
executable
_ real? (18) - exist? (18)
- exists? (18)
- file? (18)
-
find
_ system _ command (18) -
finish
_ all _ jobs (18) - flush (6)
- foreach (18)
- ftype (18)
- getwd (6)
- glob (18)
- grpowned? (18)
- identical? (18)
- inactivate (6)
- initialize (6)
- input (6)
- input= (24)
- inspect (6)
-
install
_ builtin _ commands (6) -
install
_ system _ commands (12) - jobs (12)
-
jobs
_ exist? (6) - join (30)
- kill (12)
-
kill
_ job (6) - link (18)
- lstat (18)
-
method
_ added (6) - mkdir (18)
- mtime (18)
- name (6)
- new (78)
- notify (36)
- open (18)
-
optparse
/ shellwords (12) - out (18)
- owned? (18)
- pipe? (18)
- popd (6)
- popdir (6)
-
process
_ controller (6) -
process
_ controllers _ exclusive (6) - pushd (6)
- pushdir (6)
- pwd (6)
-
rb
_ exec _ arg _ init (1) - readable? (18)
-
readable
_ real? (18) - readlink (18)
-
record
_ separator (6) -
record
_ separator= (6) - rehash (18)
- rename (18)
- rm (18)
- rmdir (18)
-
run
_ config (6) - setgid? (18)
- setuid? (18)
- sfork (6)
-
shell
/ builtin-command (6) -
shell
/ command-processor (6) -
shell
/ error (6) -
shell
/ filter (6) -
shell
/ process-controller (6) -
shell
/ system-command (6) - shell= (12)
- shellescape (24)
- shelljoin (24)
- shellsplit (24)
- shellwords (24)
- size (18)
- size? (18)
- socket? (18)
- spawn (48)
- split (30)
- start (6)
-
start
_ export (6) -
start
_ import (6) -
start
_ job (6) - stat (18)
- sticky? (18)
-
super
_ each (6) - symlink (18)
- symlink? (18)
- system (18)
-
system
_ path (6) -
system
_ path= (6) - tee (18)
- terminate (6)
-
terminate
_ job (6) - test (18)
- timeout (21)
-
to
_ a (6) -
to
_ s (6) - transact (18)
- truncate (18)
- umask (6)
- umask= (6)
-
unalias
_ command (12) -
undef
_ system _ command (12) - unlink (18)
- utime (18)
- verbose (12)
- verbose= (12)
- verbose? (12)
- wait? (12)
-
wait
_ all _ jobs _ execution (6) -
wait
_ to _ finish _ all _ process _ controllers (6) -
waiting
_ job? (6) -
waiting
_ jobs (6) -
waiting
_ jobs _ exist? (6) -
world
_ readable? (18) -
world
_ writable? (18) - writable? (18)
-
writable
_ real? (18) - zero? (18)
- | (6)
検索結果
-
shell (64238.0)
-
Ruby 上で sh/csh のようにコマンドの実行及びフィルタリングを手軽に行うためのライブラリです。
...y 上で sh/csh のようにコマンドの実行及びフィルタリングを手軽に行うためのライブラリです。
sh/csh の制御文は Ruby の機能を用いて実現します。
=== サンプル
==== Example 1:
require 'shell'
sh = Shell.cd("/tmp")
sh.mkdir "shell-test-1"......shell-test-1")
sh.cd("shell-test-1")
for dir in ["dir1", "dir3", "dir5"]
unless sh.exists?(dir)
sh.mkdir dir
sh.cd(dir) do
f = sh.open("tmpFile", "w")
f.puts "TEST"
f.close
end
print sh.pwd
end
end
==== Example 2:
require 'shell'
sh......= Shell.cd("/tmp")
sh.transact do
mkdir "shell-test-1" unless exists?("shell-test-1")
cd("shell-test-1")
for dir in ["dir1", "dir3", "dir5"]
if !exists?(dir)
mkdir dir
cd(dir) do
f = open("tmpFile", "w")
f.print "TEST\n"
f.close... -
shell
/ builtin-command (32016.0) -
Shell で使用するビルトインコマンドを定義しているライブラリです。
...Shell で使用するビルトインコマンドを定義しているライブラリです。... -
shell
/ command-processor (32016.0) -
Shell で使用可能なコマンドの大半を定義するライブラリです。
...Shell で使用可能なコマンドの大半を定義するライブラリです。... -
shell
/ error (32016.0) -
shell で使用する例外を定義したライブラリです。
...shell で使用する例外を定義したライブラリです。... -
shell
/ filter (32016.0) -
Shell::Filter を定義しているライブラリです。
...Shell::Filter を定義しているライブラリです。... -
shell
/ process-controller (32000.0) -
プロセスを制御するためのクラスを定義したライブラリです。
プロセスを制御するためのクラスを定義したライブラリです。 -
shell
/ system-command (32000.0) -
-
shellwords (32000.0)
-
UNIX Bourne シェルの単語分割規則に従った文字列分割機能と文字列エスケープ 機能を提供します。
...す。
Shellwords モジュールは、空白区切りの単語分割を行う shellsplit、
文字列をエスケープする shellescape、文字列エスケープを文字列リストに
対して適用する shelljoin の3つのモジュール関数を提供します。
また、shellwords ラ......イブラリを require すると、組み込みクラス String
と Array が拡張され、これらのモジュール関数と同じ機能が
String#shellsplit, String#shellescape, Array#shelljoin として使える
ようになります。... -
Shell
:: ProcessController # shell -> Shell (30402.0) -
@todo
@todo -
Shell
# pushd(path = nil , &block) -> object (26178.0) -
カレントディレクトリをディレクトリスタックにつみ, カレントディレク トリをpathにする. pathが省略されたときには, カレントディレクトリと ディレクトリスタックのトップを交換する. イテレータとして呼ばれたと きには, ブロック実行中のみpushdする.
...みpushdする.
@param path カレントディレクトリをpathにする。文字列で指定します。
@param block イテレータとして呼ぶ場合, ブロックを指定します。
動作例
require 'shell'
Shell.verbose = false
sh = Shell.new
sh.pushd("/tmp")
p sh.cwd #=>......"/tmp"
sh.pushd("/usr")
p sh.cwd #=> "/usr"
sh.popd
p sh.cwd #=> "/tmp"
sh.pushd("/usr/local"){
p sh.cwd #=> "/usr/local"
}
p sh.cwd #=> "/tmp"... -
Shell
# pushdir(path = nil , &block) -> object (26178.0) -
カレントディレクトリをディレクトリスタックにつみ, カレントディレク トリをpathにする. pathが省略されたときには, カレントディレクトリと ディレクトリスタックのトップを交換する. イテレータとして呼ばれたと きには, ブロック実行中のみpushdする.
...みpushdする.
@param path カレントディレクトリをpathにする。文字列で指定します。
@param block イテレータとして呼ぶ場合, ブロックを指定します。
動作例
require 'shell'
Shell.verbose = false
sh = Shell.new
sh.pushd("/tmp")
p sh.cwd #=>......"/tmp"
sh.pushd("/usr")
p sh.cwd #=> "/usr"
sh.popd
p sh.cwd #=> "/tmp"
sh.pushd("/usr/local"){
p sh.cwd #=> "/usr/local"
}
p sh.cwd #=> "/tmp"... -
Shell
# rehash -> {} (26100.0) -
登録されているシステムコマンドの情報をクリアします。 通常、使うことはありません。
登録されているシステムコマンドの情報をクリアします。
通常、使うことはありません。 -
Etc
:: Passwd # shell -> String (24201.0) -
このユーザのログインシェルを返します。
このユーザのログインシェルを返します。 -
Shell
# finish _ all _ jobs (23100.0) -
@todo
@todo -
Shell
# append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (20408.0) -
@todo
...@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。...