1917件ヒット
[1-100件を表示]
(0.070秒)
種類
- インスタンスメソッド (1494)
- 特異メソッド (297)
- クラス (66)
- モジュール関数 (48)
- 定数 (12)
クラス
- Array (12)
- Shell (543)
-
Shell
:: AppendFile (6) -
Shell
:: AppendIO (6) -
Shell
:: BuiltInCommand (12) -
Shell
:: Cat (12) -
Shell
:: CommandProcessor (390) -
Shell
:: Concat (12) -
Shell
:: Echo (12) -
Shell
:: Filter (474) -
Shell
:: Glob (6) -
Shell
:: ProcessController (144) -
Shell
:: SystemCommand (96) -
Shell
:: Tee (12) -
Shell
:: Void (6) - String (24)
モジュール
- Shellwords (84)
キーワード
- + (6)
- < (6)
- > (6)
- >> (6)
- BuiltInCommand (6)
- CantApplyMethod (6)
- CantDefine (6)
- Cat (6)
- CommandNotFound (6)
- Concat (6)
- DirStackEmpty (6)
- Filter (6)
- NoDelegateMethods (6)
- ProcessController (6)
- SystemCommand (6)
- Tee (6)
-
USING
_ AT _ EXIT _ WHEN _ PROCESS _ EXIT (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) - append (18)
- atime (18)
- basename (18)
-
block
_ output _ synchronize (6) - blockdev? (6)
- cat (18)
- cd (12)
- chardev? (6)
- chdir (6)
-
check
_ point (18) - chmod (18)
- chown (18)
- command (6)
- concat (18)
- ctime (18)
- cwd (6)
- 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 (36)
-
each
_ active _ object (6) - echo (18)
- escape (12)
- executable? (18)
-
executable
_ real? (18) - exist? (18)
- exists? (18)
- file? (6)
-
find
_ system _ command (18) -
finish
_ all _ jobs (18) - flush (6)
- foreach (18)
- ftype (18)
- getwd (6)
- glob (18)
- grpowned? (6)
- identical? (18)
- inactivate (6)
- initialize (6)
- input (6)
- input= (24)
- inspect (6)
-
install
_ builtin _ commands (6) -
install
_ system _ commands (12) - jobs (6)
-
jobs
_ exist? (6) - join (30)
- kill (12)
-
kill
_ job (6) - link (6)
- lstat (18)
-
method
_ added (6) - mkdir (18)
- mtime (18)
- name (6)
- new (54)
- notify (36)
- open (18)
- out (18)
- owned? (6)
- pipe? (6)
-
process
_ controller (6) -
process
_ controllers _ exclusive (6) - pushd (6)
- pushdir (6)
- pwd (6)
- readable? (6)
-
readable
_ real? (6) - readlink (18)
-
record
_ separator (6) -
record
_ separator= (6) - rehash (6)
- rename (18)
- rm (18)
- rmdir (18)
- setgid? (18)
- setuid? (18)
- sfork (6)
- shellescape (24)
- shelljoin (24)
- shellsplit (24)
- shellwords (12)
- size (18)
- size? (18)
- socket? (18)
- split (30)
- start (6)
-
start
_ export (6) -
start
_ import (6) -
start
_ job (6) - stat (18)
- sticky? (18)
-
super
_ each (6) - symlink (6)
- symlink? (6)
- system (18)
-
system
_ path (6) -
system
_ path= (6) - tee (18)
- terminate (6)
-
terminate
_ job (6) - test (18)
-
to
_ a (6) -
to
_ s (6) - transact (18)
- truncate (18)
- umask (6)
-
undef
_ system _ command (12) - unlink (18)
- utime (18)
- 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? (6) -
world
_ writable? (18) - writable? (18)
-
writable
_ real? (18) - zero? (6)
- | (6)
検索結果
先頭5件
-
Shell
:: ProcessController # shell -> Shell (24203.0) -
@todo
...@todo... -
Shell
# system(command , *opts) -> Shell :: SystemCommand (23327.0) -
command を実行する.
...で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system_command("head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT... -
Shell
# tee(file) -> Shell :: Filter (23321.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...lter オブジェクトを返します.
@param file シェルコマンドtee に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat......(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}... -
Shell
# process _ controller -> Shell :: ProcessController (23303.0) -
@todo
...@todo... -
Shell
# utime(atime , mtime , *filename) -> Integer (23302.0) -
File クラスにある同名のクラスメソッドと同じです.
...filename ファイル名を表す文字列を指定します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param utime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。
@see File.utime... -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (23227.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
end... -
Shell
# cat(*files) -> Shell :: Filter (23221.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...を内容とする Filter オブジェクトを返します.
@param files シェルコマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|......file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}... -
Shell
# concat(*jobs) -> Shell :: Concat (23203.0) -
@todo
...@todo... -
Shell
# atime(filename) -> Time (23202.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.atime... -
Shell
# ctime(filename) -> Time (23202.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.ctime... -
Shell
# delete(*filename) -> Integer (23202.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete... -
Shell
# expand _ path(path) -> String (23202.0) -
Fileクラスにある同名のクラスメソッドと同じです.
...Fileクラスにある同名のクラスメソッドと同じです.
@param path ファイル名を表す文字列を指定します。
@see File.expand_path... -
Shell
# lstat(filename) -> File :: Stat (23202.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.lstat... -
Shell
# mtime(filename) -> Time (23202.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.mtime... -
Shell
# stat(filename) -> File :: Stat (23202.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.stat... -
Shell
. def _ system _ command(command , path = command) -> nil (23160.0) -
Shell のメソッドとして command を登録します.
...
Shell のメソッドとして command を登録します.
OS上のコマンドを実行するにはまず, Shellのメソッドとして定義します.
注) コマンドを定義しなくとも直接実行できる Shell#system コマンドもあります.
@param command Shell のメソッド......path command のパスを指定します。
指定しない場合はcommand と同じになります。
例)
require 'shell'
Shell.def_system_command "ls"
# ls を定義
Shell.def_system_command "sys_sort", "sort"
# sortコマンドをsys_sortとして定義
sh = Shell.ne......w
sh.transact {
ls.each { |l|
puts l
}
(ls("-l") | sys_sort("-k 5")).each {|l|
puts l
}
}... -
Shell
. default _ system _ path -> Array (23148.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"...