17 Sep
2001
17 Sep
'01
15:52
you need to use an expect script. what you would do is create two scripts, (I would use scp rather than sftp) and have the expect script call the first script that actually copies the files. example expect script ----------------------------- #!/usr/bin/expect spawn /path/to/first/script expect "password:" send "yourpassword\n" expect eof ------------------------------ other script (the one that actually copies file) ------------------------------ #!/bin/bash scp filestocopy user@server.domain.com:/home/user ------------------------------