Reply
New Contributor
Posts: 3
Registered: ‎05-07-2018

FTP: CDSW to Unix server

Hi,

Can anyone guide me to make ftp between CDSW and Unix server, to upload & download the file, using R.

 

Please reply ASAP, As i need guidance on urgent basis...

Highlighted
Contributor
Posts: 29
Registered: ‎03-07-2017

Re: FTP: CDSW to Unix server

You could use RCurl

 

#https://cran.r-project.org/web/packages/RCurl/RCurl.pdf

library
(RCurl)

# Get Example
uris = c("http://www.omegahat.net/RCurl/index.html", "http://www.omegahat.net/RCurl/philosophy.xml")
txt = getURIAsynchronous(uris)

# FTP Upload
ftpUpload(I("Some text to be uploaded into a file\nwith several lines"),
"ftp://login:password@laptop17/ftp/zoe", ) ftpUpload(I("Some text to be uploaded into a file\nwith several lines"),
"ftp://laptop17/ftp/zoe", userpwd = "login:password" ) ftpUpload(system.file("examples", "system.png", package = "RCurl"),
"ftp://login:password@laptop17/ftp/Election.rda", postquote = c("CWD subdir", "RNFR Election.rda", "RNTO ElectionPolls.rda") )

 

Announcements