Skip to Content
0
Former Member
Oct 09, 2009 at 05:07 AM

How to Run Operating System Command Before/After Message Processing SAP PI

903 Views

Hi,

We are trying to execute multiple commands via "Operating System Command Before/After Message Processing".

When we use single command say for example cp or mv (copy or move) the commands get executed fine.

eg: cp %F /var/opt/data/outbound/Test/Dummy.txt

/this works fine/

when we club commands together or try to redirect the outputs of commands, none of the commands get executed.

eg:

cp %F /var/opt/data/outbound/Test/Dummy.txt ; rm %F

or

wc -l %F > /var/opt/data/outbound/Test/Dummy.txt

Is it possible to execute multiple commands or redirect the output of commands without using a shell script? The PI server we are working on iis hosted on UNIX environment.