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