#!/bin/bash SERVER_IP="47.253.147.187" SERVER_USER="root" SERVER_PASS="5H0FuZ:2s0q)Lx" /usr/bin/expect </dev/null\r" send "echo '--- EXISTING CERTS ---'\r" send "find /www/server -name '*.pem' -o -name '*.crt' | head -n 10\r" send "cat /www/server/nginx/conf/nginx.conf\r" send "exit\r" expect eof EOF