expectrl
A tool for automating terminal applications on Unix and on Windows.
Using the library you can:
- Spawn process
- Control process
- Interact with process's IO(input/output).
expectrl like original expect may shine when you're working with interactive applications.
If your application is not interactive you may not find the library the best choise.
Usage
A general example where the program simulates a used interacting with ftp.
use ;
The example inspired by the one in philippkeller/rexpect.
For more examples, check the examples directory.
Features
- It has an
asyncsupport (To enable them you must turn on anasyncfeature). - It supports logging.
- It supports interact function.
- It has a Windows support.
Notes
It was originally inspired by philippkeller/rexpect and pexpect.
Licensed under MIT License