Expect concept of Linux cloud computing operation and maintenance learning

Source: Internet
Author: User

expect is based on Tcl's relatively simple one freeof theThe Scripting tool language, a software suite for automating interactive functions. Like SSH .,ftp And so on, these programs normally need to be manually andits interaction, and the use of expect can simulate the process of human interaction, automatic program interaction, to achieve the purpose of automation.

< Span style= "font-family: Song" > Although such interactivity can be achieved using C, Perl, and so on, but expect more professional excellent, Simple, except Span style= "font-family: Song body; font-size:12px" > supports the Unix/linux platform, it also supports the Windows platform, can say,

Expect's workflow can be understood as : Spawn starts the process----->expect expects the keyword----->send sends characters to the process-----> exits the end.

installation Expect software : First, configure the Yum installation source, and ensure that the machine can surf the Internet, and then execute the Yum install expect-y to install the expect software, after installation to see the results .

There are many useful variables in expect, which are used in the same way as the variables in the TCL language, such as:

Set Variable name variable value #设置变量的方法

Puts $ variable name #读取变量的方法

Linux is now popular with internet companies and wants to stand out from the many IT workers, requiring advanced technology and learning to add value is essential. The way of learning is your insistence. Old boy Education Linux cloud Computing Operations course, 10 years of technical precipitation, put an end to paper, the whole enterprise real case combined with theoretical teaching, want to learn more about the Linux cloud computing operations knowledge, can pay attention to the old boy education.


Expect concept of Linux cloud computing operation and maintenance learning

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.