#!/usr/bin/expect -f # connect via scp spawn scp -P [your_AA50_SSH_port_here] "root@[your_AA50_IP_address_here]:/var/log/asterisk/full" /home/[your_user_directory]/ ####################### expect { -re ".*sword.*" { exp_send "[your_AA50_root_password_here]\r" } } interact