Changeset 236 for tbroadcast/v2/scripts


Ignore:
Timestamp:
Aug 26, 2006, 11:07:28 AM (18 years ago)
Author:
garonne
Message:

MàJ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tbroadcast/v2/scripts/tbroadcast

    r235 r236  
    1 #!/usr/bin/env python
     1#!/usr/bin/env python2
    22#----------------------------------#
    33# -- Author: V.Garonne
     
    1717    if len(sys.argv) ==1 :
    1818        print 'Usage : > tbroadcast [-nb=<num_worker>] <command>'
    19         sys.exit(-1)
    20    
     19        sys.exit(-1)   
    2120    num_worker = 20   
    2221    for arg in sys.argv:           
     
    2928    # we create a pool of num_worker worker threads
    3029    print 'num_worker', num_worker , command
    31     master = Scheduler (num_worker=num_worker)       
     30    master = Scheduler (num_workers=num_worker)       
    3231    master.execute_all (command)
    3332
Note: See TracChangeset for help on using the changeset viewer.