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. WWW: http://search.cpan.org/dist/Expect-Simple Author: Diab Jerius lass='form'>
FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/qtm
Commit message (Expand)AuthorAgeFilesLines
* Update to 1.3.13cs2013-03-292-3/+3
* - convert USE_CMAKE to USESmakc2013-03-231-1/+1
* - Update to 1.3.12cs2012-11-042-7/+4
* Update to 1.3.10cs2012-07-182-4/+3
* - Convert USE_QT_VER=4 and QT_COMPONETS to USE_QT4miwi2012-06-061-2/+1
* - update png to 1.5.10dinoex2012-06-011-0/+1
* Update to 1.3.7cs2012-03-062-3/+3
* Update to 1.3.5cs2011-11-152-3/+3
* Remove CMAKE_USE_PTHREAD from the ports using it.rakuco2011-11-141-1/+0
* - Update to 1.3.3cs2011-09-233-8/+9
* Change maintainer address to my FreeBSD addresscs2011-09-151-1/+1
* - Get Rid MD5 supportmiwi2011-03-201-1/+0
* - Updated to 1.3.1glarkin2010-10-092-6/+8
* Update to 1.3makc2010-09-182-8/+5
* - update to 1.4.1dinoex2010-03-281-0/+1
* - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-221-1/+1
* - Update to 1.1.1miwi2009-07-092-5/+6
* - Update to 0.7.4.1miwi2009-05-092-6/+4
* bump PORTREVISION after cmake updatemakc2009-03-251-0/+1
* - Update to version 0.7.4miwi2009-03-142-6/+6
* - Update to 0.7.3.2miwi2009-02-212-5/+9
* - Update to 0.7.1.3miwi2009-01-142-8/+10
* Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-0/+1
* - Fix buildmiwi2008-05-311-0/+1
* - Add common code to support for cmake based ports.miwi2008-05-281-11/+2
* - Update to 0.6.0.1miwi2008-05-163-6/+10
* - Update to 0.5.8.2miwi2008-03-213-19/+23
* Reset relaxbsd@gmail.com due to maintainer-timeouts.linimon2008-03-021-1/+1
* - Update to 0.5.5miwi2007-10-242-4/+4
* - Update to 0.5.4miwi2007-10-062-5/+5
* - Change some dependencies into build only after bsd.qt.mk rev 1.3rafan2007-08-111-1/+1
* - This port does not need share/applications, so remove itrafan2007-07-271-2/+1