I am wanting to use expect to automate the copying of files from one system to another with scp, the secure copy command. Below is the syntax of my scp command:
% scp username@host_a:filename f...
http://www.experts-exchange.com/Programming/System/Unix_-_Posix/Q_10306983.html