diff --git a/srvstart b/srvstart index db1e43d..61fe211 100755 --- a/srvstart +++ b/srvstart @@ -1,2 +1,16 @@ -ssh ajohnson@tartarus srvstart.bat +#!/usr/bin/env sh +#ssh ajohnson@tartarus srvstart.bat +#ssh ajohnson@tartarus 'X:\server\alpha9\start-nova9.cmd' +ssh ajohnson@tartarus '.\srvstart.bat' +#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 diff --git a/srvstart.expect b/srvstart.expect new file mode 100755 index 0000000..0db1955 --- /dev/null +++ b/srvstart.expect @@ -0,0 +1,15 @@ +#!/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 +