Forum Discussion

Jeremy_18125's avatar
Jeremy_18125
Icon for Nimbostratus rankNimbostratus
Jan 15, 2009

sftp script using expect

I need to move all logs from all the LTM devices using sftp, this sort of job is best done using "expect", however, LTM does not have the expect shell or does it?

4 Replies

  • Why dont you use public key authentication in scp/sftp?

     

     

    I dont think there is expect binary in LTM by default. If you need it, you may try to compile from the source on CentOS 3 and then transfer the binary to the LTM.
  • I need to automate it via daily midnight cron job, need to automate the scp interactions, to selectively choose the files that has not already been copied previously, i.e. only copy zipped files recently created since the last cron job.

     

     

    Error checking & reporting during file transfer failure can not be done properly without using expect.

     

     

    CentOS 3 binary, interesting, , CentOS on VMARE perhaps. Any pointers please