source: python.old/aubio/bench/broadcast.py @ dd15573

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since dd15573 was b554e41, checked in by Paul Brossier <piem@piem.org>, 12 years ago

moved out old python interface

  • Property mode set to 100644
File size: 810 bytes
RevLine 
[4cc9fe5]1from config import *
2
3class run_broadcast:
4        def __init__(self,command,*args):
5                for host in REMOTEHOSTS:
6                        command(host,args[0],args[1:])
7
8def remote_sync(host,path='',options=''):
9        optstring = ''
10        for i in options:
11                optstring = "%s %s" % (optstring,i)
12        print RSYNC_CMD,optstring,RSYNC_OPT,' --delete', 
13        print '%s%s%s%s%s' % (path,'/ ',host,':',path)
14
15
16def fetch_results(host,path='',options=''):
17        optstring = ''
18        for i in options:
19                optstring = "%s %s" % (optstring,i)
20        print RSYNC_CMD,optstring,RSYNC_OPT,' --update', 
21        print '%s%s%s%s%s' % (host,':',path,'/ ',path)
22
23def remote_queue(host,command,options=''):
24        print 'oarsub -p "hostname = \'',host,'\'',command
25       
Note: See TracBrowser for help on using the repository browser.