636件ヒット
[101-200件を表示]
(0.068秒)
別のキーワード
ライブラリ
- ビルトイン (156)
- mkmf (12)
- pty (48)
- rake (12)
- shell (78)
-
shell
/ command-processor (66) -
shell
/ filter (84) -
shell
/ system-command (102)
クラス
- Shell (78)
-
Shell
:: CommandProcessor (66) -
Shell
:: Filter (84) -
Shell
:: SystemCommand (96)
キーワード
- < (6)
- > (6)
- >> (6)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- SystemCommand (6)
- Win32ネイティブ版Rubyの互換性問題 (12)
- ` (12)
- active? (6)
-
alias
_ command (6) - cat (18)
-
def
_ system _ command (12) - each (6)
- echo (18)
- exec (48)
-
find
_ system _ command (18) - flush (6)
- getpty (24)
- glob (18)
- input= (6)
-
install
_ system _ commands (12) - kill (6)
- name (6)
- new (6)
- notify (12)
- out (18)
- rdoc (12)
-
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) - sh (12)
-
shell
/ system-command (6) - spawn (72)
- start (6)
-
start
_ export (6) -
start
_ import (6) -
super
_ each (6) - tee (18)
- terminate (6)
-
to
_ a (6) -
to
_ s (6) - transact (18)
- tsort (12)
-
unalias
_ command (6) -
undef
_ system _ command (12) - wait? (6)
- xsystem (12)
- | (6)
検索結果
先頭5件
-
Shell
. def _ system _ command(command , path = command) -> nil (12468.0) -
Shell のメソッドとして command を登録します.
...ell のメソッドとして command を登録します.
OS上のコマンドを実行するにはまず, Shellのメソッドとして定義します.
注) コマンドを定義しなくとも直接実行できる Shell#system コマンドもあります.
@param command Shell のメソッドと......文字列で指定します。
@param path command のパスを指定します。
指定しない場合はcommand と同じになります。
例)
require 'shell'
Shell.def_system_command "ls"
# ls を定義
Shell.def_system_command "sys_sort", "sort"
# sortコマンドをsy... -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (12449.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... -
Shell
# find _ system _ command(command) (12303.0) -
@todo
@todo -
Shell
:: Filter # find _ system _ command(command) (12303.0) -
@todo
@todo -
Shell
. install _ system _ commands(pre = "sys _ ") -> () (12223.0) -
system_path上にある全ての実行可能ファイルをShellに定義する. メソッ ド名は元のファイル名の頭にpreをつけたものとなる.
...
system_path上にある全ての実行可能ファイルをShellに定義する. メソッ
ド名は元のファイル名の頭にpreをつけたものとなる.
@param pre Shellに定義するメソッド名の先頭に付加される文字列を指定します。
使用例: ls -l | head -n 5......のような例。
require 'shell'
Shell.install_system_commands
sh = Shell.new
sh.verbose = false
sh.transact {
(sys_ls("-l") | sys_head("-n 5")).each {|l|
puts l
}
}... -
Shell
:: SystemCommand (12000.0) -
-
shell
/ system-command (12000.0) -
-
Shell
:: SystemCommand # name -> String (9001.0) -
@todo
@todo
コマンド名を返します。 -
Shell
. alias _ command(alias , command , *opts) { . . . } -> self (6276.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
}
}... -
Kernel
# xsystem(command , opts = nil) -> () (6229.0) -
Kernel.#system と同じですが、コマンドの出力は(標準出力、標準エラー 出力ともに)ログファイルに出力します。ログファイル名は mkmf.log です。
...Kernel.#system と同じですが、コマンドの出力は(標準出力、標準エラー
出力ともに)ログファイルに出力します。ログファイル名は mkmf.log です。
@param command コマンドを指定します。
@param opts オプションを Hash で指定します。......:werror というキーに真を指定すると
@see Kernel.#system... -
Shell
. unalias _ command(alias) -> () (6159.0) -
commandのaliasを削除します.
...
commandのaliasを削除します.
@param alias 削除したいエイリアスの名前を文字列で指定します。
@raise NameError alias で指定したコマンドが無い場合に発生します。
使用例: ls -la | sort -k 5 のような例。
require 'shell'
Shell.def_system_co......mmand("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... -
Shell
:: SystemCommand . new(sh , command , *opts) (6107.0) -
@todo
...@todo
@param sh
@param command
@param opts... -
Shell
:: SystemCommand # active? -> bool (6000.0) -
@todo
@todo -
Shell
:: SystemCommand # each(rs = nil) {|line| . . . } (6000.0) -
@todo
@todo
@param rs -
Shell
:: SystemCommand # flush -> () (6000.0) -
@todo
@todo -
Shell
:: SystemCommand # input=(inp) (6000.0) -
@todo
@todo -
Shell
:: SystemCommand # kill(signal) -> Integer (6000.0) -
自身のプロセスにシグナルを送ります。
自身のプロセスにシグナルを送ります。
@param signal シグナルを整数かその名前の文字列で指定します。
負の値を持つシグナル(あるいはシグナル名の前に-)を指定すると、
プロセスではなくプロセスグループにシグナルを送ります。
@see Process.#kill