種類
- インスタンスメソッド (444)
- 特異メソッド (75)
ライブラリ
- shell (519)
キーワード
- [] (6)
-
alias
_ command (6) - append (6)
- atime (6)
- basename (6)
- blockdev? (6)
- cat (6)
- cd (6)
- chardev? (6)
- chdir (6)
-
check
_ point (6) - chmod (6)
- chown (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) - directory? (6)
- dirname (6)
- dirs (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)
- getwd (6)
- glob (6)
- grpowned? (6)
- identical? (6)
-
install
_ system _ commands (6) - join (6)
- kill (6)
- link (6)
- lstat (6)
- mkdir (6)
- mtime (6)
- new (6)
- notify (12)
- open (6)
- owned? (6)
- pipe? (6)
- popdir (6)
- pushd (6)
- pushdir (6)
- pwd (6)
- readable? (6)
-
readable
_ real? (6) - readlink (6)
-
record
_ separator (6) - rm (6)
- rmdir (6)
- setgid? (6)
- setuid? (6)
- size (6)
- size? (6)
- socket? (6)
- split (6)
- stat (6)
- sticky? (6)
- symlink (6)
- symlink? (6)
- tee (6)
- test (6)
-
unalias
_ command (6) - unlink (6)
- utime (6)
-
world
_ writable? (6) - writable? (6)
-
writable
_ real? (6) - zero? (6)
検索結果
先頭5件
-
Shell
. install _ system _ commands(pre = "sys _ ") -> () (15225.0) -
system_path上にある全ての実行可能ファイルをShellに定義する. メソッ ド名は元のファイル名の頭にpreをつけたものとなる.
...をShellに定義する. メソッ
ド名は元のファイル名の頭にpreをつけたものとなる.
@param pre Shellに定義するメソッド名の先頭に付加される文字列を指定します。
使用例: ls -l | head -n 5 のような例。
require 'shell'
Shell.install_syste......m_commands
sh = Shell.new
sh.verbose = false
sh.transact {
(sys_ls("-l") | sys_head("-n 5")).each {|l|
puts l
}
}... -
Shell
# kill(signal , job) -> Integer (15201.0) -
@todo
...@todo
ジョブにシグナルを送ります。
@param signal
@param job... -
Shell
. alias _ command(alias , command , *opts) { . . . } -> self (12419.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
. unalias _ command(alias) -> () (12419.0) -
commandのaliasを削除します.
...aliasを削除します.
@param alias 削除したいエイリアスの名前を文字列で指定します。
@raise NameError alias で指定したコマンドが無い場合に発生します。
使用例: 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.unalias_command("lsla")
begin
Shell.unalias_command("lsla")
rescue NameError => err
puts err
end... -
Shell
# file?(file) -> bool (12401.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#file?... -
Shell
# readlink(path) -> String (12301.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path シンボリックリンクを表す文字列を指定します。
@see File.readlink... -
Shell
# writable?(file) -> bool (12301.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable?... -
Shell
# writable _ real?(file) -> bool (12301.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable_real?... -
Shell
# finish _ all _ jobs (12201.0) -
@todo
@todo -
Shell
# identical? (12201.0) -
@todo
@todo -
Shell
# link(old , new) -> 0 (12201.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new ファイル名を表す文字列を指定します。
@see File.link... -
Shell
# split(pathname) -> [String] (12201.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param pathname パス名を表す文字列を指定します。
@see File.split... -
Shell
# symlink(old , new) -> 0 (12201.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new シンボリックリンクを表す文字列を指定します。
@see File.symlink... -
Shell
# symlink?(file) -> bool (12201.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#symlink?... -
Shell
# unlink(path) -> self (12201.0) -
path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
...path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
@param path 削除したいパスを指定します。
@see File.unlink, Dir.unlink... -
Shell
# world _ writable? (12201.0) -
@todo
@todo -
Shell
. debug _ output _ exclusive _ unlock { . . . } -> Mutex | nil (12201.0) -
@todo
...@todo
@see Mutex#exclusive_unlock... -
Shell
# utime(atime , mtime , *filename) -> Integer (9401.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param utime 更新時刻を Time か、起......算時からの経過秒数を数値で指定します。
@see File.utime...