#!/usr/bin/expect #ssh ajohnson@tartarus srvstart.bat #ssh ajohnson@tartarus "X:\server\alpha9\start-nova9.cmd" #echo "Yay you did it" set timeout 10 set host [lindex $argv 0] spawn ssh ajohnson@${host} expect "Microsoft Windows" send ".\\srvstart.bat\r" #expect "Logged in successfully" #send "saveandexit 0\r" expect eof