#!/usr/bin/expect set timeout 5 set seafile_dir [lindex $argv 0] spawn $seafile_dir/upgrade/upgrade_8.0_9.0.sh expect "to contiune" send "\r"; interact