Skip to Content
author's profile photo Former Member
Former Member

passing mulitple parameters to unix shell script via File adapter

Hi,

I have the following usecase.

I have a set of files A, B, C, D etc in a directory dir. I also have a EOT ( end of transaction file).

I need to merge this file once the EOT file is present in XI application server ( using NFS with File adpter).

I have a script which can take the following paramters:

1. EOT file name

2. File names for A,B,C,D

3. Directory names.

Is it possible to send muliple parameters to the unix script from the File adapter?

please share any blogs which do so.

Thanks in advance,

Best Regards

Abhishek

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2009 at 08:18 AM

    Hi,

    You can always call script from file adapter using "OS command" functionality, pass additional parameter like you do in unix for existing script (exact command which you type on unix prompt).

    Adapter will simply pass your OS command to operating system, so from XI point of view nothing is changed and it is your script which should take care of parameters.

    Regards,

    Gourav

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.