From: Richard W.M. Jones Date: Tue, 26 Jul 2022 09:08:12 +0000 (+0100) Subject: docs: Small revisions to the manual and readme file X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=239fab3e3bb2f06a19db3cd1c3e91c93c7141891;p=miniexpect.git docs: Small revisions to the manual and readme file --- diff --git a/README b/README index 828c449..1884e3e 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -miniexpect is a very simple expect-like library for C. +miniexpect is a very simple expect-like library It has a saner interface than libexpect, and doesn't depend on Tcl. It is also thread safe, const-correct and uses modern C standards. diff --git a/miniexpect.pod b/miniexpect.pod index e93ff67..7453859 100644 --- a/miniexpect.pod +++ b/miniexpect.pod @@ -2,7 +2,7 @@ =head1 NAME -miniexpect - A very simple expect library for C. +miniexpect - A very simple expect library =head1 SYNOPSIS @@ -384,10 +384,12 @@ compiler, you can just use a local variable instead. { 0 }, }, match_data)) { case 100: - /* here you would send a password */ + /* server printed a password prompt, so send a password */ + mexp_printf_password (h, "%s", password); break; case 101: - /* here you would send a command */ + /* server sent a shell prompt, send a command */ + mexp_printf (h, "ls\n"); break; case MEXP_EOF: fprintf (stderr, "error: ssh closed the connection unexpectedly\n");