Using expect script C/C++ library to manage Linux hosts

The expect C library is an altenative to using plain expect scripts, specially useful if you are a C or C++ programmer who also mange Linux hosts.  The program that follows was built in Debian, it is a simple demonstration on how to use the library.