⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Open3
/
Edit File: capture2-c.ri
U:RDoc::AnyMethod[iI" capture2:ETI"Open3::capture2;TT:publico: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<code>opts[:stdin_data]</code> and <code>opts[:binmode]</code>. See Process.spawn.;T@o; ; [I"`If <code>opts[:stdin_data]</code> is specified, it is sent to the command's standard input.;T@o; ; [I"SIf <code>opts[:binmode]</code> 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
Simpan