Expect script to find file existence on remote server
问题 I am writing an expect script to figure out the existence of a specific file on a remote server. My test server is located in the same network as the remote server. While I tried to search through stackoverflow for similar stuff all I could find is expect scripts that would work on local server. This link (How to find if a file exists in expect script) was the closest. On similar lines I found the following website to - Expect with SFTP Expect Script Based on both I tried to write my expect