# load repro to gain access to WGET builder from repro import * # fetch RSF data file, shotdepp.p.rsf, from SLIM # public FTP server WGET( 'shotdeep.p.rsf', None, user='anonymous', url='ftp://slim.eos.ubc.ca', path='data/synth/delphi' ) # fetch README file from SLIM private FTP server # password asked at run time # WARNING: command fails without valid password WGET( 'README', None, user='private', password='$ASK', url='ftp://slim.eos.ubc.ca', path='data/synth/CVX/Tuiko2') # load os to gain access to environ from os import environ # fetch README file from SLIM private FTP server # password assumed available from SLIM_PASSWORD # environment variable # WARNING: command fails without valid password WGET( 'FILE', None, user='private', password=environ.get('SLIM_PASSWORD'), url='ftp://slim.eos.ubc.ca', path='data/users/hegilles/misc') # define an environment for WGET with common parameters wgetenv = Environment( user='anonymous', url='ftp://slim.eos.ubc.ca', path='data/users/hegilles/Fig' ) # define list of figures to fetch figs = ['bincentering.pdf', 'regularization.pdf'] # fetch figures for fig in figs: wgetenv.WGET( fig, None )
# load repro to gain access to FTP builder from repro import * # fetch RSF data file, shotdepp.p.rsf, from SLIM # public FTP server FTP( 'shotdeep.p.rsf', None, user='anonymous', host='slim.eos.ubc.ca', path='data/synth/delphi' ) # fetch README file from SLIM private FTP server # WARNING: command fails without valid password FTP( 'README', None, user='private', host='slim.eos.ubc.ca', path='data/synth/CVX/Tuiko2') # define an environment for FTP with common parameters ftpenv = Environment( user='anonymous', host='slim.eos.ubc.ca', path='data/users/hegilles/Fig' ) # define list of figures to fetch figs = ['bincentering.pdf', 'regularization.pdf'] # fetch figures for fig in figs: ftpenv.FTP( fig, None )