Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Net
/
Telnet
/
//opt/alt/ruby21/share/ri/2.1.0/system/Net/Telnet/cmd-i.ri
U:RDoc::AnyMethod[iI"cmd:EFI"Net::Telnet#cmd;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I" Send a command to the host.;To:RDoc::Markup::BlankLine o; ; [I"IMore exactly, sends a string to the host, and reads in all received ;TI"=data until is sees the prompt or other matched sequence.;T@o; ; [ I"EIf a block is given, the received data will be yielded to it as ;TI"Hit is read in. Whether a block is given or not, the received data ;TI"Gwill be return as a string. Note that the received data includes ;TI"Athe prompt and in most cases the host's echo of our command.;T@o; ; [I"F+options+ is either a String, specified the string or command to ;TI"Csend to the host; or it is a hash of options. If a hash, the ;TI"(following options can be specified:;T@o:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I"String;T; [o; ; [I"5the command or other string to send to the host.;To;;[I" Match;T; [o; ; [ I"7a regular expression, the sequence to look for in ;TI"<the received data before returning. If not specified, ;TI":the Prompt option value specified when this instance ;TI"=was created will be used, or, failing that, the default ;TI"prompt of /[$%#>] \z/n.;To;;[I"Timeout;T; [o; ; [ I"?the seconds to wait for data from the host before raising ;TI"<a Timeout error. If not specified, the Timeout option ;TI"<value specified when this instance was created will be ;TI"=used, or, failing that, the default value of 10 seconds.;T@o; ; [I"IThe command or other string will have the newline sequence appended ;TI"to it.;T: @fileI"lib/net/telnet.rb;T:0@omit_headings_from_table_of_contents_below00I" recvdata;F[ I"(options);T@@FI"Telnet;TcRDoc::NormalClass00