⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Open3
/
View File Name :
capture2-i.ri
U:RDoc::AnyMethod[iI" capture2:ETI"Open3#capture2;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I">Open3.capture2 captures the standard output of a command.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"Astdout_str, status = Open3.capture2([env,] cmd... [, opts]) ;T:@format0o; ; [I"GThe arguments env, cmd and opts are passed to Open3.popen3 except ;TI"X
opts[:stdin_data]
and
opts[:binmode]
. See Process.spawn.;T@o; ; [I"`If
opts[:stdin_data]
is specified, it is sent to the command's standard input.;T@o; ; [I"SIf
opts[:binmode]
is true, internal pipes are set to binary mode.;T@o; ; [I" Example:;T@o;; [I"6# factor is a command for integer factorization. ;TI"8o, s = Open3.capture2("factor", :stdin_data=>"42") ;TI"p o #=> "42: 2 3 7\n" ;TI" ;TI"1# generate x**2 graph in png using gnuplot. ;TI" gnuplot_commands = <<"End" ;TI" set terminal png ;TI"! plot x**2, "-" with lines ;TI" 1 14 ;TI" 2 1 ;TI" 3 8 ;TI" 4 5 ;TI" e ;TI" End ;TI"Ximage, s = Open3.capture2("gnuplot", :stdin_data=>gnuplot_commands, :binmode=>true);T; 0: @fileI"lib/open3.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(*cmd);T@0FI" Open3;TcRDoc::NormalModule00