Is it possible to do the following by expect script?I have Linux server that connected to linux_machine1 and linux_machine1 connected to linux_machine2My Linux server have access only to linux_machine1 ( linux server can telnet to linux_machine1 but  cant telnet to linux_machine2  )But from linux_machine1 I have access VIA telnet to linux_machine2So my question is:I need to develop expect script that perform telnet from the Linux server to linux_machine1 then expect will perform telnet to linux_machine2 from linux_machine1 and will copy the /etc/hosts file from linux_machine2 to  my Linux serverIs this scenario can be implemented by expect script?Short example that descript the process:  ( run expect from Linux server ) --> linux_machine1 --> linux_machine2   Linux server          <--   /etc/hosts    from linux_machine2 <--remark - expect script need to be activate from the linux server
Expect script + automated telnet process between three Linux machines
linux;expect;telnet;autologin