るりまサーチ

最速Rubyリファレンスマニュアル検索!
294件ヒット [1-100件を表示] (0.075秒)

別のキーワード

  1. kernel system
  2. _builtin system
  3. socket pf_system
  4. socket af_system
  5. socket eai_system

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 > >>

Shell#system(command, *opts) -> Shell::SystemCommand (21344.0)

command を実行する.

...で指定します。

@param opts command のオプションを文字列で指定します。複数可。

使用例:

require 'shell'
Sh
ell.verbose = false
sh
= Shell.new

print sh.system("ls", "-l")
Sh
ell.def_system_command("head")
sh
.system("ls", "-l") | sh.head("-n 3") > STDOUT...

Shell::CommandProcessor#system(command, *opts) -> Shell::SystemCommand (21344.0)

command を実行する.

...で指定します。

@param opts command のオプションを文字列で指定します。複数可。

使用例:

require 'shell'
Sh
ell.verbose = false
sh
= Shell.new

print sh.system("ls", "-l")
Sh
ell.def_system_command("head")
sh
.system("ls", "-l") | sh.head("-n 3") > STDOUT...

Shell::Filter#system(command, *opts) -> Shell::SystemCommand (21344.0)

command を実行する.

...で指定します。

@param opts command のオプションを文字列で指定します。複数可。

使用例:

require 'shell'
Sh
ell.verbose = false
sh
= Shell.new

print sh.system("ls", "-l")
Sh
ell.def_system_command("head")
sh
.system("ls", "-l") | sh.head("-n 3") > STDOUT...

FileUtils#sh(*cmd) {|result, status| ... } (18126.0)

与えられたコマンドを実行します。

...参照してください。


例:
sh
%{ls -ltr}

sh
'ls', 'file with spaces'

# check exit status after command runs
sh
%{grep pattern file} do |ok, res|
if ! ok
puts "pattern not found (status = #{res.exitstatus})"
end
end

@see Kernel.#exec, Kernel.#system...

Shell::SystemCommand#flush -> () (12101.0)

@todo

@todo

絞り込み条件を変える

Shell#system_path -> Array (9133.0)

コマンドサーチパスの配列を返す。

...コマンドサーチパスの配列を返す。

@param path コマンドサーチパスの配列を指定します。

使用例

require 'shell'
sh
= Shell.new
sh
.system_path = [ "./" ]
p sh.system_path #=> ["./"]...

Shell#system_path=(path) (9133.0)

コマンドサーチパスの配列を返す。

...コマンドサーチパスの配列を返す。

@param path コマンドサーチパスの配列を指定します。

使用例

require 'shell'
sh
= Shell.new
sh
.system_path = [ "./" ]
p sh.system_path #=> ["./"]...

Shell#find_system_command(command) (9102.0)

@todo

@todo

Shell::CommandProcessor#find_system_command(command) (9102.0)

@todo

@todo

Shell::Filter#find_system_command(command) (9102.0)

@todo

@todo

絞り込み条件を変える

Shell::SystemCommand#active? -> bool (6001.0)

@todo

@todo

Shell::SystemCommand#command -> String (6001.0)

@todo

@todo

コマンド名を返します。

Shell::SystemCommand#each(rs = nil) {|line| ... } (6001.0)

@todo

@todo

@param rs

Shell::SystemCommand#input=(inp) (6001.0)

@todo

@todo

Shell::SystemCommand#kill(signal) -> Integer (6001.0)

自身のプロセスにシグナルを送ります。

自身のプロセスにシグナルを送ります。

@param signal シグナルを整数かその名前の文字列で指定します。
負の値を持つシグナル(あるいはシグナル名の前に-)を指定すると、
プロセスではなくプロセスグループにシグナルを送ります。

@see Process.#kill

絞り込み条件を変える

Shell::SystemCommand#name -> String (6001.0)

@todo

@todo

コマンド名を返します。
<< 1 2 3 > >>