Examples
This Expect script is a simple example that establishes a terminal session:
spawn tip modem expect "connected" send "ATD$argc\r" set timeout 30 expect "CONNECT"As tip does not have the built-in logging capabilities that Minicom has, we need to use some other means to record the session. One way is to use script:
raub@kushana-134>script -a install.log Script started, file is install.log raub@kushana-1>tip hardwire raub@kushana-2>exit Script done, file is install.log raub@kushana-135>and so on. In the above example, run on a Sun SPARC 20 workstation running Solaris 9, we first create a log file called install.log in the current directory using script and then tell tip to use serial port B.
Read more about this topic: Tip (Unix Utility)
Famous quotes containing the word examples:
“It is hardly to be believed how spiritual reflections when mixed with a little physics can hold peoples attention and give them a livelier idea of God than do the often ill-applied examples of his wrath.”
—G.C. (Georg Christoph)
“In the examples that I here bring in of what I have [read], heard, done or said, I have refrained from daring to alter even the smallest and most indifferent circumstances. My conscience falsifies not an iota; for my knowledge I cannot answer.”
—Michel de Montaigne (15331592)
“No rules exist, and examples are simply life-savers answering the appeals of rules making vain attempts to exist.”
—André Breton (18961966)