Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
All the text that has been printed so far get's re-printed.$htpasswd = "/usr/local/apache/bin/htpasswd $htpasswdfile $formuser"; ($htpass = Expect->spawn("$htpasswd")) || die "could not spawn progra +m, $!";
-------------------------use CGI qw(:standard); use Expect; print "Content-type: text/html\n\n"; print "test1\n"; $htpasswd = "/usr/local/apache/bin/htpasswd $htpasswdfile $formuser"; ($htpass = Expect->spawn("$htpasswd")) || die "could not spawn progra +m, $!"; print "test2\n"; exit;
-------------------------test1 Content-type: text/html test1 test2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: expect.pm
by merlyn (Sage) on May 16, 2000 at 04:45 UTC | |
|
Re: expect.pm
by lhoward (Vicar) on May 16, 2000 at 04:15 UTC | |
|
RE: expect.pm
by Anonymous Monk on May 16, 2000 at 05:04 UTC | |
by chromatic (Archbishop) on May 16, 2000 at 05:46 UTC | |
|
Re: expect.pm
by Anonymous Monk on May 16, 2000 at 18:27 UTC | |
|
Re: expect.pm
by Anonymous Monk on May 16, 2000 at 19:03 UTC | |
|
Re: expect.pm
by Anonymous Monk on May 16, 2000 at 22:35 UTC | |
|
Re: expect.pm
by Anonymous Monk on Feb 10, 2016 at 18:42 UTC |