feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 25c9f9a 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
|
Line | |
---|
1 | from config import * |
---|
2 | |
---|
3 | class run_broadcast: |
---|
4 | def __init__(self,command,*args): |
---|
5 | for host in REMOTEHOSTS: |
---|
6 | command(host,args[0],args[1:]) |
---|
7 | |
---|
8 | def 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 | |
---|
16 | def 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 | |
---|
23 | def remote_queue(host,command,options=''): |
---|
24 | print 'oarsub -p "hostname = \'',host,'\'',command |
---|
25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.