Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.073.994 Times

Expect::Simple 0.04

Company: Diab Jerius
Date Added: July 02, 2013  |  Visits: 335

Expect::Simple

Report Broken Link
Printer Friendly Version


Product Homepage
Download (42 downloads)



Expect::Simple is a Perl 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.<br /><br />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<br />characters at the end of each line in the result (on UNIX at least). This is easily fixed:<br /><br /> ($res = $obj->before) =~ tr/<br />//d;<br /> @lines = split( "<br />", $res );<br /><br />This is not done automatically.<br /><br />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.<br /><br />The connection is automatically broken (by sending the specified disconnect command to the target) when the Expect::Simple object is destroyed.<br /><br />SYNOPSIS<br /><br /> use Expect::Simple;<br /><br /> my $obj = new Expect::Simple<br /> { Cmd => [ dmcoords => 'verbose=1', "infile=$infile"],<br /> Prompt => [ -re => 'dmcoords>:s+' ],<br /> DisconnectCmd => 'q',<br /> Verbose => 0,<br /> Debug => 0,<br /> Timeout => 100<br /> };<br /><br /> $obj->send( $cmd );<br /> print $obj->before;<br /> print $obj->after;<br /> print $obj->match_str, "<br />";<br /> print $obj->match_idx, "<br />";<br /> print $obj->error_expect;<br /> print $obj->error;<br /><br /> $expect_object = $obj->expect_handle;<br />

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Automatically Broken Connection Error Errors Expect Expectsimple Expectsimple 0 04 Human Method Methodthe Object Objgtbefore Print Program Quotquot Readable Target
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


EXPECT::SIMPLE RELATED
Web Browser Tools  -  Turbo Favorites Checker 2.0
100K tool to clean up 404's 500's and connection unreachable errors. Supports MS IE, Netscape, Mozilla Firefox
99 KB  
Networking  -  Broken Links Remover 1.2.1
Automatically remove the bad and broken links from the view of human visitors and search engine robots.Some features: * Broken Links Remover removes(hides) bad/broken links from the requestor's(search engine or human) view * Bad/broken links...
10 KB  
Libraries  -  Net::SCP::Expect 0.12
Net::SCP::Expect is a wrapper for scp that allows passwords via Expect. SYNOPSIS Example 1 - uses login method, longhand scp: my $scpe = Net::SCP::Expect->new; $scpe->login(user name, password); $scpe->scp(file,host:/some/dir); Example 2 -...
153.6 KB  
Development Tools  -  Page Guard Pro for HTML Tools 1.1
If there is an error on your web page like file not found or failed script, the Page Guard will come in action. It replaces errors and logs them.Features:- Script replaces the nasty looking error pages.- Explain the web error to the visitor in a...
20.48 KB  
Networking  -  Guest Blogger 1.5.2
This plugin was intended for developers who need to view errors generated by PHP. It sets an error handling function, but makes no attempt to alter other default conditions and reporting conditions within PHP. It is capable of reporting any error...
153.6 KB  
Modules  -  SugarSOAP Diagnostic 1.0
This Joomla component allows you to check the connection with SugarCRM from Joomla using SOAP. It creates a NuSOAP object using your SugarCRM URI, get a WSDL proxy, login into SugarCRM using your user information and insert test information in the...
153.6 KB  
Programming  -  libnetfilter_conntrack for Linux 0.0.101
libnetfilter_conntrack is a userspace library providing a programming interface (API) to the in-kernel connection tracking state table. libnetfilter_conntrack has been previously known as libnfnetlink_conntrack and libctnetlink.
276.48 KB  
File Synchronizers  -  petardfs 0.0.2
petardfs is a FUSE filesystem designed to hoist your applications with errors. With no configuration, petardfs takes a base filesystem and exposes it through FUSE. An XML configuration file is used to tell petardfs which files to report errors...
286.72 KB  
Database Tools  -  My DB classes 1.0
My DB classes is a simple wrapper around MySQL database access functions.My DB classes provides wrapper functions around most of the PHP MySQL extension function like database, connection, queries execution and result data access, error message...
10 KB  
Programming  -  ClearCase::ClearPrompt 1.31
ClearCase::ClearPrompt is a Perl module that provides various areas of functionality, each based on clearprompt in some way but otherwise orthogonal. These are: - Clearprompt Abstraction Provides a simplified interface to the...
20.48 KB  
NEW DOWNLOADS IN SHELL & DESKTOP, CLIPBOARD UTILITIES
Shell & Desktop  -  Glunarclock 0.32.4
GNOME Lunar Clock Applet displays the current phase of the Moon as an applet for the gnome panel. In the properties box you can choose between a real image Features Pointing with the mouse at the applet...
522.24 KB  
Shell & Desktop  -  Fekete 5
Icon theme for Linux For all possible desktop, and Linux distro Special additives: Suse's Yast icons. Xfce system icons, and archaic mimetypes icons Mandriva "special placed" status icons. Libreoffice icons.
71.59 MB  
Shell & Desktop  -  XFast 0.9
XFast is a slim and lightweighted desktop environment that incorporates X and Window Manager within the same project.
1.15 MB  
Shell & Desktop  -  print selection konqueror service menu 0.1
This service menu give you a *silly* way to print fast your selection on konqueror USE select the text copy the text rigt button on the webpage select print selection a kdialog will appear paste the text
10.24 KB  
Shell & Desktop  -  Faenza 1.2
Faenza icon theme is available to install for Ubuntu users via a PPA repository. View the README file for instructions and a list of known issues.
23.49 MB  
Clipboard Utilities  -  System Monitor 2 1.0.2
System Monitor 2 is a modification of standard KDE System Monitor tool, KSysguard. - One archive for 64/32 bit binary and the other one for the source - I only did the linux part so it won't work now for SunOs/FreeBSD/... - To...
675.84 KB  
Clipboard Utilities  -  Adapt for Linux 0.1
Adapt is a framework for Python command-line tools. It converts existing scripts into command line tools, and optionally converts command line tools into RESTFUL web services. Plans to eventually support PyQT application creation as well.
51.2 KB  
Clipboard Utilities  -  Wiican 0.3.3
WiiCan assists to setup your wiimote under GNU/Linux, create and share mappings. It also provides a d-bus api, so third apps could make use of wiimote easily WiiCan acts as a sytem tray icon, programmed in python. It connects to bluez...
317.44 KB