Exercises
Using
.netrcor<<redirection in a shell script, haveftpretrieve a file. Make the script retry if the remote site is too busy but not if the file cannot be found.Count the number of times that people have rewritten
ftpto make it more flexible. Use Archie if you need help.Count the number of programs you use that each have a different language for writing scripts or
.rcfiles.Find Expect’s
exampledirectory online and try out some of the examples. Rewrite one in your favorite language.Think about each keystroke that you press today. How much is the same from one session to the next? How much can be automated?
UNIX existed for over 20 years—without Expect. What did people do before? Which of those solutions still make sense today?
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access