cancel
Showing results for 
Search instead for 
Did you mean: 

executing the command at the target FTP server from file adapter

Former Member
0 Kudos

HI

I was wondering if file adapters can execute the OS command at the target FTP server where the file adapter is placing the file.

Or can these OS commands be executed at the OS of XI box only.

I need to execute a command at the target FTP server end.

Regards

Nikhil

Accepted Solutions (0)

Answers (3)

Answers (3)

ravi_raman2
Active Contributor
0 Kudos

There is another option, create a java pgm ..simple one..

public class...zys{

Process p;

Runtime rt;

p = rt.getRuntime().exec("YOUR STRING COMMAND");

}

Create this ..as the file and post it, also look up how to add this to scheduled tasks..or crontab...to run and use that to run your command on the target system..it works very well, thats what i do.

Regards

Ravi Raman

Former Member
0 Kudos

Hey

as said by Bhavesh,the OS level command is executed on XI server itself ,a way around can be that u execute a script via OS command on XI server,now this script will invoke another script on the receiver system and its in this script that you can do whatever u want to do on the receiver system,

so basically you will have one script runnin on both XI and receiver system,the XI script will call the second script

Thanx

Aamir

Message was edited by:

Aamir Suhail

bhavesh_kantilal
Active Contributor
0 Kudos

OS of XI itself.

File adapter FAQ note on Service market place discusses this.

Regards

Bhavesh