-
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;