Skip to Content
avatar image
Former Member

OS Command

Hi,

Shell script command doesnt get executed in sender file adapter

I have mentioned

/export/home/input/runthis.sh

under ' Run Operating system command before Messge processing'.

This shell script is working fine when i try to execute it manually.

Please help me to solve it out.

Regards

Divia

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 18, 2008 at 05:54 AM

    Hi

    Change to

    /export/home/input/runthis.sh%F

    Refer for more info

    Executing Unix shell script using Operating System Command in XI

    Thanks

    Gaurav

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 18, 2008 at 10:33 AM

    HI Sridivia,

    If you want to send the file name with obsolute path you can use %F .as mentioned by Gaurav.

    If the script is not expecting any parameters the no need of that.Your command is correct.

    I was facing the same problem last month,script was running fine when i execute it seperatly in UNIX Box,but when i tried to execute from XI.NOT WORKING.

    Later i changed it to execute as CRONJOB in UNIX Box itself.

    Let me know your usage of script so that i can help you out for scheduling CRONJOB.

    Thanks

    Prabhakar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 18, 2008 at 12:14 PM

    >>/export/home/input/runthis.sh

    Instead of this,can you please try by giving the complete path,like C:/Mydocuments/export/home...... etc

    also try using the below command

    cmd.exe C:/Mydocuments/export/home.......

    Thanx

    Aamir

    Add comment
    10|10000 characters needed characters exceeded