423件ヒット
[1-100件を表示]
(0.122秒)
種類
- インスタンスメソッド (342)
- 特異メソッド (81)
ライブラリ
- shell (423)
キーワード
- [] (6)
-
alias
_ command (6) - append (6)
- atime (6)
- basename (6)
- cd (6)
-
check
_ point (6) - chmod (6)
- chown (6)
-
command
_ processor (6) - concat (6)
- ctime (6)
- cwd (6)
- debug (12)
- debug? (12)
-
debug
_ output _ exclusive _ unlock (3) -
debug
_ output _ synchronize (6) -
debug
_ output _ unlock (6) -
def
_ system _ command (6) -
default
_ record _ separator (6) - delete (6)
- dir (6)
-
dir
_ stack (6) - dirname (6)
- dirs (6)
- echo (6)
-
find
_ system _ command (6) -
finish
_ all _ jobs (6) - foreach (6)
- ftype (6)
- getwd (6)
- glob (6)
- grpowned? (6)
- identical? (6)
-
install
_ system _ commands (6) - join (6)
- kill (6)
- link (6)
- lstat (6)
- mtime (6)
- new (6)
- notify (12)
- open (6)
- out (6)
- owned? (6)
-
process
_ controller (6) - pushd (6)
- pushdir (6)
- pwd (6)
- readlink (6)
-
record
_ separator (6) - rename (6)
- rm (6)
- size (6)
- size? (6)
- split (6)
- stat (6)
- symlink (6)
- symlink? (6)
- system (6)
- test (6)
- transact (6)
- truncate (6)
-
unalias
_ command (6) -
undef
_ system _ command (6) - unlink (6)
- utime (6)
検索結果
先頭5件
-
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (12401.0) -
commandを削除します.
...commandを削除します.
@param 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
# find _ system _ command(command) (12301.0) -
@todo
@todo -
Shell
# append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (6301.0) -
@todo
...@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。... -
Shell
. def _ system _ command(command , path = command) -> nil (6301.0) -
Shell のメソッドとして command を登録します.
...
Shell のメソッドとして command を登録します.
OS上のコマンドを実行するにはまず, Shellのメソッドとして定義します.
注) コマンドを定義しなくとも直接実行できる Shell#system コマンドもあります.
@param command Shell のメソッド......nd のパスを指定します。
指定しない場合はcommand と同じになります。
例)
require 'shell'
Shell.def_system_command "ls"
# ls を定義
Shell.def_system_command "sys_sort", "sort"
# sortコマンドをsys_sortとして定義
sh = Shell.new
sh.tran... -
Shell
# basename(filename , suffix = "") -> String (6201.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き......'.' を含まない任意の文字列にマッチします。
@see File.basename... -
Shell
# command _ processor -> Shell :: CommandProcessor (6201.0) -
@todo
@todo -
Shell
# concat(*jobs) -> Shell :: Concat (6201.0) -
@todo
@todo -
Shell
# dirname(filename) -> String (6201.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.dirname... -
Shell
# process _ controller -> Shell :: ProcessController (6201.0) -
@todo
@todo -
Shell
. alias _ command(alias , command , *opts) { . . . } -> self (6201.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
. install _ system _ commands(pre = "sys _ ") -> () (6113.0) -
system_path上にある全ての実行可能ファイルをShellに定義する. メソッ ド名は元のファイル名の頭にpreをつけたものとなる.
...ルをShellに定義する. メソッ
ド名は元のファイル名の頭にpreをつけたものとなる.
@param pre Shellに定義するメソッド名の先頭に付加される文字列を指定します。
使用例: ls -l | head -n 5 のような例。
require 'shell'
Shell.install_sy......stem_commands
sh = Shell.new
sh.verbose = false
sh.transact {
(sys_ls("-l") | sys_head("-n 5")).each {|l|
puts l
}
}... -
Shell
# check _ point (6101.0) -
@todo
@todo -
Shell
# chown(owner , group , *filename) -> Integer (6101.0) -
File クラスにある同名のクラスメソッドと同じです.
...メソッドと同じです.
@param owner chown(2) と同様に数値で指定します。nil または -1 を指定することで、オーナーを現在のままにすることができます。
@param group chown(2) と同様に数値で指定します。nil または -1 を指定すること......で、グループを現在のままにすることができます。
@param filename ファイル名を表す文字列を指定します。
@see File.chown... -
Shell
# expand _ path(path) -> String (6101.0) -
Fileクラスにある同名のクラスメソッドと同じです.
...Fileクラスにある同名のクラスメソッドと同じです.
@param path ファイル名を表す文字列を指定します。
@see File.expand_path... -
Shell
# finish _ all _ jobs (6101.0) -
@todo
@todo -
Shell
# grpowned?(file) -> bool (6101.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#grpowned?... -
Shell
# identical? (6101.0) -
@todo
@todo