cancel
Showing results for 
Search instead for 
Did you mean: 

System command not running in receiver file adapter

Former Member
0 Kudos

Guys,

We have a Proxy to File scenario and after creating the

file I want to run a Unix shell script but for some reason it's not executed at all.

The script works fine (tested at the unix level) but it

doesn't run if I enter it in the "Command line" parameter.

Even if I try standard Unix like:

"ls -l >/usr/tmp/dirlist.txt" it doesn't get executed.

Any idea what the problem could be or what to check?

Thanks a lot,

Viktor Varga

Accepted Solutions (1)

Accepted Solutions (1)

moorthy
Active Contributor
0 Kudos

Hi,

Check this SAP note -841704

Try giving like this- <b>sh <script name with path></b>

Also check this SAP Blog-just to cross check if you ar enot gone thru

/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi

/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching

Regards,

Moorthy

Former Member
0 Kudos

Hey Moorthy,

"sh <script name with path>" works like a charm!

Thank you very much, you made my day!!

Best regards,

Viktor

moorthy
Active Contributor
0 Kudos

Hi Viktor,

Great !!! Good one to hear..

Regards,

Moorthy

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi viktor,

have a look at my weblog:

/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching

maybe you can try somehting similar to that on your Unix

to catch the real command?

Regards,

michal