gd_transferfile

Performs a third-party file transfer using GridFTP.

 

Syntax

gd_transferfile(host1,host2,remotefile1,remotefile2,

     filetype='ASCII')

   

Description

gd_transferfile(host1,host2,remotefile1,remotefile2) transfers the file specified by the string  remotefile1 on the GridFTP server host1 to the file specified by remotefile2 on host2.

 

gd_transferfile(host1,host2,remotefile1,remotefile2, filetype) as above except the string filetype sets the file transfer type. When filetype = 'ASCII' the file transfer type will be ASCII (this is the default setting), alternatively when filetype = 'binary' the file transfer type is set to binary.

 

Examples

The following command will transfer a file called '/tmp/test1' from 'server1' to a file called '/tmp/test2' on 'server2' in ASCII mode,:

 

from gdcompute import *

gd_transferfile('server1.domain.com','server2.domain.com', '/tmp/test1','/tmp/test2')

 

Notes

A valid proxy certificate is required to use GridFTP. Suitable credentials may be required to transfer files to remote servers.

 

See also

gd_putfile, gd_getfile, gd_createproxy

 




gd_submitunique

contents

dbtoolbox

Copyright © 2005, The Geodise Project, University of Southampton