678件ヒット
[401-500件を表示]
(0.029秒)
別のキーワード
種類
- インスタンスメソッド (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 # tee(file) -> Shell :: Filter (3001.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
....
@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) | te... -
Shell
:: CommandProcessor # test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (3001.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...ァイルへのパスを指定します。
@param file2 文字列でファイルへのパスを指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e"... -
Shell
:: CommandProcessor # transact { . . . } -> object (3001.0) -
ブロック中で shell を self として実行します。
...ブロック中で shell を self として実行します。
例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact{
system("ls", "-l") | head > STDOUT
# transact の中では、
# sh.system("ls", "-l") | sh.head > STDOUT と同じとなる。
}... -
Shell
:: CommandProcessor # truncate(path , length) -> 0 (3001.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate -
Shell
:: CommandProcessor # unlink(path) -> self (3001.0) -
path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
@param path 削除したいパスを指定します。
@see File.unlink, Dir.unlink -
Shell
:: CommandProcessor # utime(atime , mtime , *filename) -> Integer (3001.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param utime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。
@see File.utime -
Shell
:: CommandProcessor # world _ readable? (3001.0) -
@todo
@todo -
Shell
:: CommandProcessor # world _ writable? (3001.0) -
@todo
@todo -
Shell
:: CommandProcessor # writable?(file) -> bool (3001.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable? -
Shell
:: CommandProcessor # writable _ real?(file) -> bool (3001.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable_real? -
Shell
:: CommandProcessor # zero?(file) -> bool (3001.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#zero? -
Shell
:: CommandProcessor . add _ delegate _ command _ to _ shell(id) (3001.0) -
@todo
...@todo
Shell 自体を初期化する時に呼び出されるメソッドです。
ユーザが使用することはありません。
@param id メソッド名を指定します。... -
Shell
:: CommandProcessor . alias _ command(alias , command , *opts) -> self (3001.0) -
@todo
@todo
@param alias エイリアスの名前を指定します。
@param command コマンド名を指定します。
@param opts コマンドに与えるオプションを指定します。
@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。 -
Shell
:: CommandProcessor . alias _ command(alias , command , *opts) { . . . } -> self (3001.0) -
@todo
@todo
@param alias エイリアスの名前を指定します。
@param command コマンド名を指定します。
@param opts コマンドに与えるオプションを指定します。
@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。 -
Shell
:: CommandProcessor . alias _ map -> Hash (3001.0) -
Shell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。
...
Shell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。... -
Shell
:: CommandProcessor . def _ builtin _ commands(delegation _ class , commands _ specs) -> () (3001.0) -
@todo
@todo
@param delegation_class 処理を委譲したいクラスかモジュールを指定します。
@param commands_specs コマンドの仕様を文字列の配列で指定します。
[[コマンド名, [引数1, 引数2, ...]], ...] -
Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () (3001.0) -
@todo
@todo
与えられたコマンドをメソッドとして定義します。
@param command 定義したいコマンドを指定します。
@param path command のパスを指定します。省略すると環境変数 PATH から command を探します。 -
Shell
:: CommandProcessor . initialize -> () (3001.0) -
@todo
@todo
このクラスを初期化します。