#!/usr/bin/expect -f spawn ssh-copy-id root@$argv expect "password:" send "password\n" expect eof