X7ROOT File Manager
Current Path:
/opt/alt/ruby18/share/ri/1.8/system/IO
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
IO
/
📄
%3c%3c-i.yaml
(560 B)
ðŸ“
..
📄
binmode-i.yaml
(383 B)
📄
block_scanf-i.yaml
(201 B)
📄
bytes-i.yaml
(568 B)
📄
cdesc-IO.yaml
(7.74 KB)
📄
chars-i.yaml
(617 B)
📄
close-i.yaml
(612 B)
📄
close_read-i.yaml
(720 B)
📄
close_write-i.yaml
(767 B)
📄
closed%3f-i.yaml
(689 B)
📄
each-i.yaml
(815 B)
📄
each_byte-i.yaml
(637 B)
📄
each_char-i.yaml
(625 B)
📄
each_line-i.yaml
(825 B)
📄
eof%3f-i.yaml
(1.15 KB)
📄
eof-i.yaml
(1.15 KB)
📄
fcntl-i.yaml
(665 B)
📄
fileno-i.yaml
(470 B)
📄
flush-i.yaml
(598 B)
📄
for_fd-c.yaml
(259 B)
📄
foreach-c.yaml
(673 B)
📄
fsync-i.yaml
(591 B)
📄
getbyte-i.yaml
(458 B)
📄
getc-i.yaml
(452 B)
📄
gets-i.yaml
(895 B)
📄
inspect-i.yaml
(269 B)
📄
ioctl-i.yaml
(586 B)
📄
isatty-i.yaml
(525 B)
📄
lineno%3d-i.yaml
(748 B)
📄
lineno-i.yaml
(816 B)
📄
lines-i.yaml
(679 B)
📄
new-c.yaml
(655 B)
📄
open-c.yaml
(599 B)
📄
pid-i.yaml
(712 B)
📄
pipe-c.yaml
(1.27 KB)
📄
popen-c.yaml
(2.03 KB)
📄
pos%3d-i.yaml
(432 B)
📄
pos-i.yaml
(475 B)
📄
print-i.yaml
(902 B)
📄
printf-i.yaml
(384 B)
📄
putc-i.yaml
(600 B)
📄
puts-i.yaml
(787 B)
📄
read-c.yaml
(782 B)
📄
read-i.yaml
(974 B)
📄
read_nonblock-i.yaml
(999 B)
📄
readbyte-i.yaml
(321 B)
📄
readbytes-i.yaml
(473 B)
📄
readchar-i.yaml
(321 B)
📄
readline-i.yaml
(331 B)
📄
readlines-c.yaml
(537 B)
📄
readlines-i.yaml
(695 B)
📄
readpartial-i.yaml
(3.72 KB)
📄
reopen-i.yaml
(749 B)
📄
rewind-i.yaml
(549 B)
📄
scanf-i.yaml
(1.24 KB)
📄
seek-i.yaml
(1.01 KB)
📄
select-c.yaml
(323 B)
📄
soak_up_spaces-i.yaml
(179 B)
📄
stat-i.yaml
(542 B)
📄
sync%3d-i.yaml
(630 B)
📄
sync-i.yaml
(544 B)
📄
sysopen-c.yaml
(421 B)
📄
sysread-i.yaml
(649 B)
📄
sysseek-i.yaml
(624 B)
📄
syswrite-i.yaml
(614 B)
📄
tell-i.yaml
(477 B)
📄
to_i-i.yaml
(214 B)
📄
to_io-i.yaml
(237 B)
📄
tty%3f-i.yaml
(521 B)
📄
ungetc-i.yaml
(828 B)
📄
write-i.yaml
(734 B)
📄
write_nonblock-i.yaml
(636 B)
Editing: popen-c.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Runs the specified command string as a subprocess; the subprocess's standard input and output will be connected to the returned <tt>IO</tt> object. If <em>cmd_string</em> starts with a ``<tt>-</tt>'', then a new instance of Ruby is started as the subprocess. The default mode for the new file object is ``r'', but <em>mode</em> may be set to any of the modes listed in the description for class IO. - !ruby/struct:SM::Flow::P body: If a block is given, Ruby will run the command as a child connected to Ruby with a pipe. Ruby's end of the pipe will be passed as a parameter to the block. At the end of block, Ruby close the pipe and sets <tt>$?</tt>. In this case <tt>IO::popen</tt> returns the value of the block. - !ruby/struct:SM::Flow::P body: "If a block is given with a <em>cmd_string</em> of ``<tt>-</tt>'', the block will be run in two separate processes: once in the parent, and once in a child. The parent process will be passed the pipe object as a parameter to the block, the child version of the block will be passed <tt>nil</tt>, and the child's standard in and standard out will be connected to the parent through the pipe. Not available on all platforms." - !ruby/struct:SM::Flow::VERB body: " f = IO.popen("uname")\n p f.readlines\n puts "Parent is #{Process.pid}"\n IO.popen ("date") { |f| puts f.gets }\n IO.popen("-") {|f| $stderr.puts "#{Process.pid} is here, f is #{f}"}\n p $?\n" - !ruby/struct:SM::Flow::P body: <em>produces:</em> - !ruby/struct:SM::Flow::VERB body: " ["Linux\\n"]\n Parent is 26166\n Wed Apr 9 08:53:52 CDT 2003\n 26169 is here, f is\n 26166 is here, f is #<IO:0x401b3d44>\n #<Process::Status: pid=26166,exited(0)>\n" full_name: IO::popen is_singleton: true name: popen params: | IO.popen(cmd_string, mode="r" ) => io IO.popen(cmd_string, mode="r" ) {|io| block } => obj visibility: public
Upload File
Create Folder