cancel
Showing results for 
Search instead for 
Did you mean: 

OS Command on FTP

Former Member
0 Kudos

Hi

Please help me to understand this.

1. Adapter: FILE

2. Transport protocol : FTP

3. Message Protocol : FIle

4. Direction : Inbound (receiver)

Please correct me if i am wrong.

1. XI can NOT execute a OS command/ shell script on the receiver FTP server.

True/false

2. XI Can execute a OS Command/Shell scripton only on XI BOX.

True/false

3. I need to change the file permissions after putting the file on the receiver FTP server. What are my options

Thank you

Ganges Leaves

Accepted Solutions (1)

Accepted Solutions (1)

moorthy
Active Contributor
0 Kudos

Hi Ganges,

<i>1. XI can NOT execute a OS command/ shell script on the receiver FTP server.</i>

True,

The OS Command for the file adapter only runs on the system in which the Adapter Framework is running.

<i>2. XI Can execute a OS Command/Shell scripton only on XI BOX.</i>

As above

<i>3. I need to change the file permissions after putting the file on the receiver FTP server. What are my options</i>

Using Shell Script execution it is possible. You are executing Shell Script in XI box. Inside your shell script you can ftp/sftp programatically and connect to the FTP server and change the permissions. If you are doing like this, then my suggestion is dump the file into XI box using NFS protocol and then using shell script FTP the Files into FTP server and change the permission.

Hope this helps,

Regards,

Moorthy

Former Member
0 Kudos

Moorthy,

Thank you.

From shell script on xi box, using ftp commands how can i change the file permission on the receiver FTP server

Thank You

Ganges Leaves

moorthy
Active Contributor
0 Kudos

Ganges,

You are going to execute one shell script which is in XI box. But this shell script will connect to FTP server using ftp commands inside the shell script and it will copy the files from XI server into FTP server. Once you copy this into FTP server you can change the permission programatically..in the Reciever FTP server

Sender->XI->Shell Script (it should contain code to connect to FTP receiver)->FTP receiver

So your scenario is Source->XI->File using NFS so that you have files written into XI box. This adapter calls shell script to copy the files into FTP server and once you are able to logon Recever FTP server then you can do permissions whatever..

Thanks,

Moorthy

Answers (0)