Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Expect
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Basics == Expect is used to automate control of interactive [[application software|applications]] such as [[Telnet]], [[FTP]], [[Passwd (command)|passwd]], [[fsck]], [[rlogin]], [[tip (unix utility)|tip]], [[Secure Shell|SSH]], and others.<ref>{{Cite web |url=https://www.howtogeek.com/devops/automate-inputs-to-linux-scripts-with-the-expect-command/ |title=Automate Inputs to Linux Scripts With the expect Command |last=Mckay |first=David |date=May 24, 2021 |orig-date=May 24, 2021 |series=category/Linux |access-date=Nov 28, 2023 |language=en}}</ref> Expect uses [[pseudo terminal]]s (Unix) or emulates a console (Windows), starts the target program, and then communicates with it, just as a human would, via the terminal or console interface.<ref>{{Cite book |last1=Carling |first1=M. |url=https://books.google.com/books?id=tK4oIcnngiUC&dq=pseudo+terminals+expect&pg=PA125 |title=Linux System Administration |last2=Degler |first2=Stephen |last3=Dennis |first3=James |date=2000 |publisher=Sams Publishing |isbn=978-1-56205-934-7 |language=en}}</ref> [[Tk (framework)|Tk]], another Tcl extension, can be used to provide a [[GUI]].<ref>{{Cite web |title=Tcl/Tk in the Development of User-Extensible Graphical User Interfaces |url=https://www.usenix.org/legacy/publications/library/proceedings/tcl96/full_papers/skinner/skinner.html |access-date=2022-08-11 |website=www.usenix.org}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)