Port details on branch 2022Q2 |
- p5-Expect-Simple Wrapper around the Expect module
- 0.04_1 devel =1 0.04_1Version of this port present on the latest quarterly branch.
- Maintainer: perl@FreeBSD.org
- Port Added: 2006-05-23 16:12:37
- Last Update: 2022-09-07 21:58:51
- Commit Hash: fb16dfe
- People watching this port, also watch:: p5-Want, p5-MIME-Tools, p5-Time-HiRes, screen
- Also Listed In: perl5
- License: GPLv2+
- WWW:
- https://metacpan.org/release/Expect-Simple
- Description:
- Expect::Simple is a wrapper around the Expect module which should suffice
for simple applications. It hides most of the Expect machinery; the Expect
object is available for tweaking if need be.
Generally, one starts by creating an Expect::Simple object using new. This
will start up the target program, and will wait until one of the specified
prompts is output by the target. At that point the caller should send()
commands to the program; the results are available via the before, after,
match_str, and match_idx methods. Since Expect simulates a terminal, there
will be extra \r characters at the end of each line in the result (on UNIX
at least). This is easily fixed:
($res = $obj->before) =~ tr/\r//d;
@lines = split( "\n", $res );
This is not done automatically.
Exceptions will be thrown on error (match with /Expect::Simple/). Errors
from Expect are available via the error_expect method. More human readable
errors are available via the error method.
The connection is automatically broken (by sending the specified
disconnect command to the target) when the Expect::Simple object is
destroyed.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-Expect-Simple>0:devel/p5-Expect-Simple
- To install the port:
- cd /usr/ports/devel/p5-Expect-Simple/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/p5-Expect-Simple
- pkg install p5-Expect-Simple
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-Expect-Simple
- Flavors: there is no flavor information for this port.
- distinfo:
- SHA256 (Expect-Simple-0.04.tar.gz) = af83b92185e642695913ff138efe819752e80857759996deafcaab2700ad5db5
SIZE (Expect-Simple-0.04.tar.gz) = 13856
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- p5-Expect>=0 : lang/p5-Expect
- perl5>=5.32.r0<5.33 : lang/perl5.32
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Runtime dependencies:
-
- p5-Expect>=0 : lang/p5-Expect
- perl5>=5.32.r0<5.33 : lang/perl5.32
- This port is required by:
- for Build
-
- devel/p5-Test-Expect
- for Run
-
- devel/p5-Test-Expect
Configuration Options:
- No options to configure
- Options name:
- devel_p5-Expect-Simple
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|