Re: Executing a program (non-go program) on a remote machine

140 views
Skip to first unread message

bryanturley

unread,
Nov 15, 2012, 10:44:53 AM11/15/12
to golan...@googlegroups.com
Thats not really a go question...

Under the assumption that your firmware flashing program is command line and not a GUI...

If you wrote a little go server to run your batch files for you and ran it on each firmware flashing machine you could collect the data and send it back to the go log server you also wrote.
http://golang.org/pkg/os/exec/   may run batch files... will definitely run .exe/.msi/.com.

There may also be a way to get a ssh/telnet server on windows, then you could find a go ssh package and use that from a central point to run your firmware flashing programs remotely...
http://godashboard.appspot.com/  I see 2 ssh implementations there, never used them can't really comment on their quality.

I would do it the first way but the 2nd is simpler as long you can rely on the other software.
Well I would find a way to do it without windows but you might not have that luxury.

ron minnich

unread,
Nov 15, 2012, 11:50:33 AM11/15/12
to itmi...@gmail.com, golan...@googlegroups.com
At sandia we used gproc to good effect for tasks like this. 25
machines is a very small number compared to what we used. It might
work for you.

ron
Message has been deleted

Cappy2112

unread,
Nov 17, 2012, 12:12:56 AM11/17/12
to golan...@googlegroups.com


On Friday, November 16, 2012 9:12:19 PM UTC-8, Cappy2112 wrote:


On Thursday, November 15, 2012 7:44:53 AM UTC-8, bryanturley wrote:
>>Thats not really a go question...
 It is, because I wanted to use Go for both the client and server ends to run my batch file.
>>Under the assumption that your firmware flashing program is command line and not a GUI...
yes
 
>>If you wrote a little go server to run your batch files for you and ran it on each firmware flashing machine you could collect the data and send it >>back to the go log server you also wrote.
>>http://golang.org/pkg/os/exec/   may run batch files... will definitely run .exe/.msi/.com.

I want to be able to run one program from my development system, which launches another program
on each of the 25 machines.
I don't really need to collect any data.

 
>>There may also be a way to get a ssh/telnet server on windows, then you could find a go ssh package and use that from a central point to run >>your firmware flashing programs remotely...
>>http://godashboard.appspot.com/  I see 2 ssh implementations there, never used them can't really comment on their quality.
I think ssh wll require an ssh service running on the target machines. I'd like to pass on that, but it's a good idea anyway.
 
 
>>Well I would find a way to do it without windows but you might not have that luxury.
All of our test systems run Windows.
Go should be a slam dunk for this 

Cappy2112

unread,
Nov 17, 2012, 12:13:55 AM11/17/12
to golan...@googlegroups.com, itmi...@gmail.com


On Thursday, November 15, 2012 7:57:26 AM UTC-8, itmi...@gmail.com wrote:
Do you have a Win Server machine along with those XP machines in your network?
If so, WSUS them.

No, I don't.
thanks 
Reply all
Reply to author
Forward
0 new messages