Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 238 Bytes
#!/usr/bin/env expect
set client [lindex $argv 0]
set user [lindex $argv 1]
set pass [lindex $argv 2]
spawn $client sync
expect "Email Address: "
send $user
send "\n"
expect "Password: "
sleep 0.1
send $pass
send "\n"
expect eof