How to get a file present in a special file via SSH
For example: host1 and dir HOST 2: - SH Host 1 - Is present in test file or do not use bash
SSI tells you to return the execution code of the command:
if ssh host1 stat / home / tree / test \> / Dev / null 2 \ & gt; \ & Amp; 1 then the echo file exists, the second echo is not found FI You will definitely need key authentication setup, so that you have password prompt.
Comments
Post a Comment