batch.git
3 years agoIgnore unwanted files master new_arch2
Julian Phillips [Mon, 29 Dec 2008 14:39:57 +0000 (14:39 +0000)] 
Ignore unwanted files

*.pyc files are not wanted as they as generated by Python - and *~
files are created by editing the files, and are also not needed.

3 years agoStart adding a return Queue for sending back to the main thread.
Julian Phillips [Mon, 8 Dec 2008 09:06:48 +0000 (09:06 +0000)] 
Start adding a return Queue for sending back to the main thread.

We want the main thread to be responsible for all output, and for
tracking when all the requested commands have completed - so we need a
return Queue for sending information back.  This adds this return
Queue and some processing for the items being sent - but doesn't
actually send anything yet, and may not work.

3 years agoTidy up the code in main() a bit
Julian Phillips [Wed, 3 Dec 2008 20:02:26 +0000 (20:02 +0000)] 
Tidy up the code in main() a bit

Really all this code should be elsewhere, but for now just arrange it
more sensibly, throw out some debug code and add comments indicating
the logical blocks.

3 years agoStart using a command object rather than a list
Julian Phillips [Wed, 3 Dec 2008 20:01:03 +0000 (20:01 +0000)] 
Start using a command object rather than a list

In order to do things like track which commands have completed we are
going to want something more than just a list of strings, so use an
object instead - though it doesn't really add much yet.

3 years agoDon't display SSH banners
Julian Phillips [Wed, 3 Dec 2008 19:55:37 +0000 (19:55 +0000)] 
Don't display SSH banners

Use the -q option to ssh to avoid displaying banner messages

3 years agoBeginnings of multi-host batch script
Julian Phillips [Wed, 3 Dec 2008 02:10:43 +0000 (02:10 +0000)] 
Beginnings of multi-host batch script

This is the very beginnings of a multi-host batch processing script.
The code is both masively incomplete and in need of arranging properly
- however it is just about capable of running a set of commands on a
  set of hosts.