Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ftp question

Status
Not open for further replies.

jvmerc

Programmer
Joined
Jun 7, 2006
Messages
10
I have an ftp user name domain/user and need to use the domain when connect. can't get it to work.

put("ftp", "-t -a url =PUT("FTP", "-T -A -URL FTP://domain/id:pw@ip\path\file_name",
PACKAGE(data))

thinks the domain is the ftp address.
 
I think it should be something like
=PUT("FTP", "-T -A -URL ftp://domain/id:pw@ip/path/file_name",
PACKAGE(data))
However, it's best to do it through a run map. I have a utility map with 1 input card and one output card both using a blob of data and call this passing the appropriate adapter commands e.g.
valid(run("ftpadapter",echoin(1, data) + " -OAFTP1 '-URL ftp://" + User + ":" + Pword + "@" + IPadd + "/" + Destination + " -MKD -T+'"),fail("ftp confirm.txt failed " + TEXT ( LASTERRORCODE ( ) ) + " " + LASTERRORMSG()))
 
Hi,

Assuming that "domain/id" is the user name then you just need to encode the / in the connection string.
Simply replace it with "%2F".

If you have any other % in the connection string it might confuse the resource registry so its best to replace the % with something else (e.g. put "% -> %$%" in the Resource Reg, the / then becomes %$%2F)

Cheers
Olly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top