るりまサーチ

最速Rubyリファレンスマニュアル検索!
1704件ヒット [1-100件を表示] (0.047秒)
トップページ > クエリ:etc[x] > クエリ:shell[x]

別のキーワード

  1. etc passwd
  2. etc group
  3. etc each
  4. etc sc_shell
  5. etc uname

ライブラリ

クラス

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

shell (38114.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...

Etc::Passwd#shell -> String (29101.0)

このユーザのログインシェルを返します。

このユーザのログインシェルを返します。

Etc::SC_SHELL -> Integer (20117.0)

Etc.#sysconf の引数に指定します。

...
Etc
.#sysconf の引数に指定します。

詳細は sysconf(3) を参照してください。...

Etc::Passwd#shell=(shell) (17202.0)

このユーザのログインシェルを設定します。

このユーザのログインシェルを設定します。

Etc::SC_2_CHAR_TERM -> Integer (17017.0)

Etc.#sysconf の引数に指定します。

...
Etc
.#sysconf の引数に指定します。

詳細は sysconf(3) を参照してください。...

絞り込み条件を変える

Etc::SC_2_C_BIND -> Integer (17017.0)

Etc.#sysconf の引数に指定します。

...
Etc
.#sysconf の引数に指定します。

詳細は sysconf(3) を参照してください。...

Etc::SC_2_C_DEV -> Integer (17017.0)

Etc.#sysconf の引数に指定します。

...
Etc
.#sysconf の引数に指定します。

詳細は sysconf(3) を参照してください。...

Etc::SC_2_FORT_DEV -> Integer (17017.0)

Etc.#sysconf の引数に指定します。

...
Etc
.#sysconf の引数に指定します。

詳細は sysconf(3) を参照してください。...

Etc::SC_2_FORT_RUN -> Integer (17017.0)

Etc.#sysconf の引数に指定します。

...
Etc
.#sysconf の引数に指定します。

詳細は sysconf(3) を参照してください。...
<< 1 2 3 ... > >>