78件ヒット
[1-78件を表示]
(0.015秒)
キーワード
-
optparse
/ shellwords (12) -
shell
/ builtin-command (6) -
shell
/ command-processor (6) -
shell
/ error (6) -
shell
/ filter (6) -
shell
/ process-controller (6) -
shell
/ system-command (6) - shellwords (12)
-
win32
/ registry (12)
検索結果
-
shell (38085.0)
-
Ruby 上で sh/csh のようにコマンドの実行及びフィルタリングを手軽に行うためのライブラリです。
...は Ruby の機能を用いて実現します。
=== サンプル
==== Example 1:
require 'shell'
sh = Shell.cd("/tmp")
sh.mkdir "shell-test-1" unless sh.exists?("shell-test-1")
sh.cd("shell-test-1")
for dir in ["dir1", "dir3", "dir5"]
unless sh.exists?(dir)
sh.mkdir dir......ST"
f.close
end
print sh.pwd
end
end
==== Example 2:
require 'shell'
sh = Shell.cd("/tmp")
sh.transact do
mkdir "shell-test-1" unless exists?("shell-test-1")
cd("shell-test-1")
for dir in ["dir1", "dir3", "dir5"]
if !exists?(dir)
mkdir dir......re 'shell'
sh = Shell.new
sh.cat("/etc/printcap") | sh.tee("tee1") > "tee2"
(sh.cat < "/etc/printcap") | sh.tee("tee11") > "tee12"
sh.cat("/etc/printcap") | sh.tee("tee1") >> "tee2"
(sh.cat < "/etc/printcap") | sh.tee("tee11") >> "tee12"
==== Example 4:
require 'shell'
sh = Shell.new... -
shell
/ builtin-command (6017.0) -
Shell で使用するビルトインコマンドを定義しているライブラリです。
...Shell で使用するビルトインコマンドを定義しているライブラリです。... -
shell
/ command-processor (6017.0) -
Shell で使用可能なコマンドの大半を定義するライブラリです。
...Shell で使用可能なコマンドの大半を定義するライブラリです。... -
shell
/ error (6017.0) -
shell で使用する例外を定義したライブラリです。
...shell で使用する例外を定義したライブラリです。... -
shell
/ filter (6017.0) -
Shell::Filter を定義しているライブラリです。
...Shell::Filter を定義しているライブラリです。... -
optparse
/ shellwords (6001.0) -
OptionParser#on で使用可能な引数に Shellwords 追加されます。 オプションの引数は Shellwords.#shellwords によって配列に変換されてから、 OptionParser#on のブロックに渡されます。
...引数に Shellwords
追加されます。
オプションの引数は Shellwords.#shellwords によって配列に変換されてから、
OptionParser#on のブロックに渡されます。
//emlist[][ruby]{
require 'optparse/shellwords'
opts = OptionParser.new
opts.on("-s VAL", Shellwords){|a|... -
shell
/ process-controller (6001.0) -
プロセスを制御するためのクラスを定義したライブラリです。
プロセスを制御するためのクラスを定義したライブラリです。 -
shell
/ system-command (6001.0) -
-
shellwords (6001.0)
-
UNIX Bourne シェルの単語分割規則に従った文字列分割機能と文字列エスケープ 機能を提供します。
...す。
Shellwords モジュールは、空白区切りの単語分割を行う shellsplit、
文字列をエスケープする shellescape、文字列エスケープを文字列リストに
対して適用する shelljoin の3つのモジュール関数を提供します。
また、shellwords ラ......イブラリを require すると、組み込みクラス String
と Array が拡張され、これらのモジュール関数と同じ機能が
String#shellsplit, String#shellescape, Array#shelljoin として使える
ようになります。... -
win32
/ registry (19.0) -
win32/registry は Win32 プラットフォームでレジストリをアクセスするための ライブラリです。Win32 API の呼び出しに Win32API を使います。
...N32OLE を使って WScript.Shell オブジェクト経由でアクセスする方法もあります。
require 'win32ole'
wsh = WIN32OLE.new('WScript.Shell')
value = wsh.RegRead 'HKLM\Software\Microsoft\Windows\...'
wsh.RegWrite 'HKCU\Software\foo\barfile\shell\open\command\\', '"C:\..."...