Newer
Older
cortex-hub / scripts / tmp_check_db.exp
#!/usr/bin/expect -f
set timeout 30
set password "a6163484a"
spawn ssh -o StrictHostKeyChecking=no axieyangb@192.168.68.113 "ls -lh --time-style=long-iso /home/coder/project/cortex-hub/ai-hub-dump.db /home/coder/project/cortex-hub/ai-hub/ai-hub/test.db /home/coder/project/cortex-hub/ai-hub/ai-hub/data/ai_hub.db /home/coder/project/cortex-hub/ai-hub/app/db/data/ai_hub.db /home/coder/project/cortex-hub/ai-hub/cortex_integration_test.db /home/coder/project/cortex-hub/data/ai-hub-copy.db /home/coder/project/cortex-hub/data/ai-hub.db"
expect {
    "password:" {
        send "$password\r"
        exp_continue
    }
    eof
}