Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.188
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby30 /
share /
ri /
system /
PTY /
Delete
Unzip
Name
Size
Permission
Date
Action
ChildExited
[ DIR ]
drwxr-xr-x
2026-05-01 04:23
cdesc-PTY.ri
2.54
KB
-rw-r--r--
2024-06-26 17:25
check-c.ri
1004
B
-rw-r--r--
2024-06-26 17:25
getpty-c.ri
1.48
KB
-rw-r--r--
2024-06-26 17:25
open-c.ri
1.61
KB
-rw-r--r--
2024-06-26 17:25
spawn-c.ri
1.48
KB
-rw-r--r--
2024-06-26 17:25
Save
Rename
U:RDoc::NormalModule[iI"PTY:ET@0o:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"<Creates and manages pseudo terminals (PTYs). See also ;TI"2https://en.wikipedia.org/wiki/Pseudo_terminal;To:RDoc::Markup::BlankLine o; ;[I"LPTY allows you to allocate new terminals using ::open or ::spawn a new ;TI"&terminal with a specific command.;T@S:RDoc::Markup::Heading: leveli: textI"Example;T@o; ;[I"PIn this example we will change the buffering type in the +factor+ command, ;TI":assuming that factor uses stdio for stdout buffering.;T@o; ;[I"RIf IO.pipe is used instead of PTY.open, this code deadlocks because factor's ;TI"stdout is fully buffered.;T@o:RDoc::Markup::Verbatim;[ I"3# start by requiring the standard library PTY ;TI"require 'pty' ;TI" ;TI"master, slave = PTY.open ;TI"read, write = IO.pipe ;TI"3pid = spawn("factor", :in=>read, :out=>slave) ;TI",read.close # we dont need the read ;TI"#slave.close # or the slave ;TI" ;TI"'# pipe "42" to the factor command ;TI"write.puts "42" ;TI"'# output the response from factor ;TI"%p master.gets #=> "42: 2 3 7\n" ;TI" ;TI"7# pipe "144" to factor and print out the response ;TI"write.puts "144" ;TI",p master.gets #=> "144: 2 2 2 2 3 3\n" ;TI""write.close # close the pipe ;TI" ;TI"I# The result of read operation when pty slave is closed is platform ;TI"# dependent. ;TI"ret = begin ;TI"4 master.gets # FreeBSD returns nil. ;TI"5 rescue Errno::EIO # GNU/Linux raises EIO. ;TI" nil ;TI" end ;TI"p ret #=> nil ;T:@format0S;;i; I"License;T@o;;[I"'C) Copyright 1998 by Akinori Ito. ;TI" ;TI"IThis software may be redistributed freely for this purpose, in full ;TI"Hor in part, provided that this entire copyright notice is included ;TI"Non any copies of this software and applications and derivations thereof. ;TI" ;TI"LThis software is provided on an "as is" basis, without warranty of any ;TI"Lkind, either expressed or implied, as to any matter including, but not ;TI"Glimited to warranty of fitness of purpose, or merchantability, or ;TI"0results obtained from use of this software.;T;0: @fileI"ext/pty/pty.c;T:0@omit_headings_from_table_of_contents_below0;0;0[ [ [ [[I" class;T[[:public[ [:protected[ [:private[ [I" check;TI"ext/pty/pty.c;T[I"getpty;T@Z[I" open;T@Z[I" spawn;T@Z[I" instance;T[[;[ [;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0[I"ext/pty/pty.c;T@JcRDoc::TopLevel