Skip Menu |

This queue is for tickets about the Net-SSH-Expect CPAN distribution.

Report information
The Basics
Id: 35325
Status: open
Priority: 0/
Queue: Net-SSH-Expect

People
Owner: Nobody in particular
Requestors: BNEGRAO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: documentation needs repairs
- fix title of the waitfor() method. it should show the three arguments accepted: waitfor ($string [, $timeout, $match_type]) - fix documentation of the send() method, it is messy and doesn't tell clearly that this method can be used to execute commands on the remote server.
- fix documentation of the "terminator" constructor option, telling that the terminator character is also appended to the string passed to the send() method. - fix documentation of exec() and send() to tell that the terminator character is added at the end of the string passed as argument. On Tue Apr 22 22:44:48 2008, BNEGRAO wrote: Show quoted text
> - fix title of the waitfor() method. it should show the three
arguments Show quoted text
> accepted: waitfor ($string [, $timeout, $match_type]) > > - fix documentation of the send() method, it is messy and doesn't
tell Show quoted text
> clearly that this method can be used to execute commands on the
remote Show quoted text
> server.
- tell that send() doesn't return output so it need another method call, like read_line() in order to get the output from the command executed by send().
In the example on the beginning, replace the lines bellow: # Starting ssh without password # 1) run the constructor my $ssh = Net::SSH::Expect->new ( host => "myserver.com", user => 'bnegrao', raw_pty => 1 ); For these: # Starting ssh without password # NOTE: YOU NEED SSH PUBLIC-KEY AUTHENTICATION CONFIGURED # AND TESTED BEFORE RUNNING THIS. READ run_ssh() MANUAL FOR INFO. # 1) run the constructor my $ssh = Net::SSH::Expect->new ( host => "myserver.com", user => 'bnegrao', raw_pty => 1 );