DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Exercies of Chapter 3 in "Exploring Expect"


  • 1 ~ 3: ftp.uu.net has disappeared since 2006 (https://en.wikipedia.org/wiki/UUNET).

  • 4:

method 1 (no timeout): login; send "ls"; save expect_out(buffer) to buf; expect "ftp>"; parse buf, if there is "pub", send "cd pub"; "interact";

method 2 (timeout): login; send "ls"; expect "pub*send OK." then send "cd pub"; if timeout, interact;



Published

Aug 21, 2013

Last Updated

Aug 21, 2013

Category

Tech

Tags

  • expect 10

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor