I am trying to use an automated script, which would login to SVN, update my sources, create a tarball with these and scp them to a remote host.
The problem here is that, for every login to SVN (even for checkout or update), we require to enter our password. Automation of password entry, the only way that I could find, was using expect to work on this.
Is there any script in expect, which can take care of SVN and scp for detecting and giving the password to SVN and then to SCP?
I am using the following:
spawn svn [lindex $argv 0]
expect " password: $"
send "$password\r"
expect {
" password: $" send "$password\r"
"^At revision "
"^Updated to revision "
}
The password and up command i pass from the command line, but there is a security threat there if someone has access to the history. The answers mentioned below do not satisfy my pre-requisites, also i am not able to do an export for now [some other security concerns :-(]