Changeset 236 for tbroadcast/v2/scripts
- Timestamp:
- Aug 26, 2006, 11:07:28 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tbroadcast/v2/scripts/tbroadcast
r235 r236 1 #!/usr/bin/env python 1 #!/usr/bin/env python2 2 2 #----------------------------------# 3 3 # -- Author: V.Garonne … … 17 17 if len(sys.argv) ==1 : 18 18 print 'Usage : > tbroadcast [-nb=<num_worker>] <command>' 19 sys.exit(-1) 20 19 sys.exit(-1) 21 20 num_worker = 20 22 21 for arg in sys.argv: … … 29 28 # we create a pool of num_worker worker threads 30 29 print 'num_worker', num_worker , command 31 master = Scheduler (num_worker =num_worker)30 master = Scheduler (num_workers=num_worker) 32 31 master.execute_all (command) 33 32
Note: See TracChangeset
for help on using the changeset viewer.