Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 07, 2007 at 08:26 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 07, 2007 at 08:26 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 06, 2011 at 04:20 PM

    This message was moderated.

    Add comment
    10|10000 characters needed characters exceeded