別のキーワード
種類
- インスタンスメソッド (516)
- 特異メソッド (138)
- 定数 (12)
- クラス (12)
クラス
- Shell (18)
-
Shell
:: CommandProcessor (498) -
Shell
:: ProcessController (144) -
Shell
:: SystemCommand (6)
キーワード
- CommandProcessor (6)
- NoDelegateMethods (6)
- ProcessController (6)
-
USING
_ AT _ EXIT _ WHEN _ PROCESS _ EXIT (6) - [] (6)
- activate (6)
-
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 (12) -
alias
_ map (6) - append (6)
- atime (6)
- basename (6)
-
block
_ output _ synchronize (6) - blockdev? (6)
- cat (6)
- chardev? (6)
-
check
_ point (6) - chmod (6)
- chown (6)
-
command
_ processor (6) - concat (6)
- ctime (6)
-
def
_ builtin _ commands (6) -
def
_ system _ command (6) - delete (6)
- directory? (6)
- dirname (6)
-
each
_ active _ object (6) - echo (6)
- executable? (6)
-
executable
_ real? (6) - exist? (6)
- exists? (6)
- file? (6)
-
find
_ system _ command (6) -
finish
_ all _ jobs (6) - foreach (6)
- ftype (6)
- glob (6)
- grpowned? (6)
- identical? (6)
- inactivate (6)
- initialize (6)
-
install
_ builtin _ commands (6) -
install
_ system _ commands (6) - jobs (6)
-
jobs
_ exist? (6) - join (6)
- kill (6)
-
kill
_ job (6) - link (6)
- lstat (6)
-
method
_ added (6) - mkdir (6)
- mtime (6)
- new (12)
- notify (6)
- open (6)
- out (6)
- owned? (6)
- pipe? (6)
-
process
_ controller (6) -
process
_ controllers _ exclusive (6) - readable? (6)
-
readable
_ real? (6) - readlink (6)
- rehash (6)
- rename (6)
- rm (6)
- rmdir (6)
-
run
_ config (6) - setgid? (6)
- setuid? (6)
- sfork (6)
- shell (6)
- size (6)
- size? (6)
- socket? (6)
- split (6)
-
start
_ job (6) - stat (6)
- sticky? (6)
- symlink (6)
- symlink? (6)
- system (6)
- tee (6)
-
terminate
_ job (6) - test (6)
- transact (6)
- truncate (6)
-
unalias
_ command (6) -
undef
_ system _ command (12) - unlink (6)
- utime (6)
-
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? (6) - writable? (6)
-
writable
_ real? (6) - zero? (6)
検索結果
先頭5件
-
Shell
:: CommandProcessor # check _ point (3001.0) -
@todo
@todo -
Shell
:: CommandProcessor # chmod(mode , *filename) -> Integer (3001.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param mode chmod(2) と同様に整数で指定します。
@see File.chmod -
Shell
:: CommandProcessor # chown(owner , group , *filename) -> Integer (3001.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param owner chown(2) と同様に数値で指定します。nil または -1 を指定することで、オーナーを現在のままにすることができます。
@param group chown(2) と同様に数値で指定します。nil または -1 を指定することで、グループを現在のままにすることができます。
@param filename ファイル名を表す文字列を指定します。
@see File.chown -
Shell
:: CommandProcessor # concat(*jobs) -> Shell :: Concat (3001.0) -
@todo
@todo -
Shell
:: CommandProcessor # ctime(filename) -> Time (3001.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.ctime -
Shell
:: CommandProcessor # delete(*filename) -> Integer (3001.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
:: CommandProcessor # directory?(file) -> bool (3001.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory? -
Shell
:: CommandProcessor # dirname(filename) -> String (3001.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.dirname -
Shell
:: CommandProcessor # echo(*strings) -> Shell :: Filter (3001.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...す.
@param strings シェルコマンド echo に与える引数を文字列で指定します。
動作例
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... -
Shell
:: CommandProcessor # executable?(file) -> bool (3001.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable? -
Shell
:: CommandProcessor # executable _ real?(file) -> bool (3001.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable_real? -
Shell
:: CommandProcessor # exist?(file) -> bool (3001.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#exist? FileTest.#exists? -
Shell
:: CommandProcessor # exists?(file) -> bool (3001.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#exist? FileTest.#exists? -
Shell
:: CommandProcessor # expand _ path(path) -> String (3001.0) -
Fileクラスにある同名のクラスメソッドと同じです.
Fileクラスにある同名のクラスメソッドと同じです.
@param path ファイル名を表す文字列を指定します。
@see File.expand_path -
Shell
:: CommandProcessor # file?(file) -> bool (3001.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#file? -
Shell
:: CommandProcessor # find _ system _ command(command) (3001.0) -
@todo
@todo -
Shell
:: CommandProcessor # finish _ all _ jobs (3001.0) -
@todo
@todo -
Shell
:: CommandProcessor # foreach(path = nil , &block) -> () (3001.0) -
pathがファイルなら, File#foreach pathがディレクトリなら, Dir#foreach の動作をします。
...なら, File#foreach
pathがディレクトリなら, Dir#foreach
の動作をします。
@param path ファイルもしくはディレクトリのパスを文字列で指定します。
使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
sh.foreach("/tmp"){|f|
puts f
}...