X-Git-Url: http://git.annexia.org/?p=miniexpect.git;a=blobdiff_plain;f=miniexpect.pod;fp=miniexpect.pod;h=74538599342012b577d6370bfbb165d4566e9482;hp=e93ff67ec24a1e949c973b44b857f010e5a7d614;hb=239fab3e3bb2f06a19db3cd1c3e91c93c7141891;hpb=bc7f2694f006e97e9c97dc2a25c968a90fbe7340 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");