From 4c03a0952b4ad84e43189ac3307efef8c7ce5f38 Mon Sep 17 00:00:00 2001 From: Aaron Johnson Date: Thu, 27 Dec 2018 01:12:56 -0600 Subject: [PATCH] Attempt to implement srvstart (needs work) --- srvstart | 16 +++++++++++++++- srvstart.expect | 15 +++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100755 srvstart.expect 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 +