Expect Tool

Hi,

I am requested to work on automation for our Solaris platform.

I am suggested to use the Expect tool for this.

I am a newbie to the tool, and I hardly able to find the resources over the net.

I need any kind of help on this like docs, pdfs, links.


Thanks,
Rishi
RishiBangAsked:
Who is Participating?
 
larsrohrCommented:
The key use of expect is in scripting interactive sessions.

For example, you can use expect to script an ftp session, where your script connects to a remote ftp site, waits for a username prompt and then enters the correct username, waits for a password prompt and then enters the correct password, waits for the next ftp prompt and then changes directory to the right place, downloads or uploads a file, and so on.
0
 
ozoCommented:
run
man expect
0
 
RishiBangAuthor Commented:
Hi,

Sorry for not asking the question in a proper way.

Actually I want to know the speciality of the Expect tool as we can automate things using shell,perl and other scripting languages.

What is the exact advantage of using Expect over the above mechanisms.

Thanks,
Rishi
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
larsrohrCommented:
In addition to the manpage for expect, here's the expect home page:
http://expect.nist.gov/

There are links there to a FAQ, to examples, and other useful info.
0
 
RishiBangAuthor Commented:
The final answer was very good and I am happy with it.

Thanks to  larsrohr
0
 
woolmilkporcCommented:
First - the homepage (alas outdated): http://expect.nist.gov/
Particularly foööow the "Links to related information" part!

Wikipedia has a rather good article - http://en.wikipedia.org/wiki/Expect

One of several tutorials - http://tldp.org/LDP/LGNET/issue48/fisher.html

Try to search Google for "expect tutorial" - you'll find much more.

wmp




0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.