#!/usr/bin/expect -f
set pwffd [lindex $argv 0]
spawn ssh cmesvr2i
expect "*password:"
send "$pwffd "
expect "*#"
interact