There’ve been many posts on the XI forum
where some of you where asking why your OS command
doesn’t get executed inside your Adapter and you don’t know what’s wrong.
I decided to check if there’s any simple way of dealing with this problem 🙂
Here’s my solution:
Once you set your communication channel (in my case it’s file/ftp)
you can set it to store the file on the File system (Transport Protocol).
Then you set target directory on the Server and the filename
Now the fun part:)
If your command isn’t executing correctly you can easily
store the error message in any file you want.
In my example I’m using the same folder as the one in which
I store my XML files from the Receiver adapter.
As you can see I execute a non existing command “echooo”
When I run my scenario apart from the XML file I can find
demo1.txt file with the descripion of the error :
‘echooo’ is not recognized as an internal or external command,
operable program or batch file.
I was working in the Windows NT environment (server)
but this should also be possible on Unix systems
I hope this little “trick” will be helpful to some of you.