cancel
Showing results for 
Search instead for 
Did you mean: 

using operating system command to access ftp server and transfer a file

Former Member
0 Kudos

Hi,

we have a vendor who is not giving us cd permission on their ftp server. And since file adapter( using ftp protocol) makes a cd while making connection to the ftp server. Our communication channel fails because of authorization issue. Is theer any way to get around this situation.

It seems OS command option might be an option to access ftp server using a shell script. Does any one has done this before. I would appreciate if you can let me know the details of connection and shell script. It's a file to file scenario. A file from NFS mount direcory in ERP has to transferred to vendor's ftp server via XI. Vendor has given us permission to place a file but no cd authorization..

Thanks,

Jassi

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Jassi,

Why do you want to change the directory with XI in Vendors FTP server? I would suggest you to put the file directly in the vendors directory. So ask your vendor the name of the directory where XI should drop the file and you place that directory name in your FTP reciever communication channel.

If you want to go with script then write a script where it connects to the FTP server and changes the directory and drops the file. You can pass the filename in the script as a parameter. Then you call this script from OS command in the receiver file adapter. If you are not sure of script then please check with your OS guys. That should be preety straight forward.

---Satish

Former Member
0 Kudos

Even if you use the shell script, you need to use the cd command in script file. The only way is place the file in there root directory directly and ask them to write the shell script/batch file on their local server/system to move it to the specified folder.