cancel
Showing results for 
Search instead for 
Did you mean: 

File Adapter OS Command Line After processing (UNIX)

Former Member
0 Kudos

Hi guys,

I want to run only one line after message processing:

compress -f %f

It must be compress seeing as this is the way we use it on our legacy system where it adds the extension .Z.

It seems crazy to write a shell script for only one line. Is there any way to run this line without using a shell script and if so should I run it in some additional characters?

Also if this isn't possible, please show me an example of how the shell script would look like, and where on the XI server this shell script should be saved.

Thanks a million!

Anneke

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Anneke,

Check this blog by Sameer

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

Should help u out

Former Member
0 Kudos

Thanks! still want to know if it possible without a script... ?

Answers (1)

Answers (1)

former_member190389
Active Contributor
0 Kudos

I guess you can directly write the command in the input box in Comm Channel for running the OS command. Instead of specifying the script file path directly specify this command there in the input box.

Former Member
0 Kudos

I've tried using it as is in the command line box, but it doesn't work. :-S

former_member190389
Active Contributor
0 Kudos

go to the servero0 directory of your SAP XI installation throug command prompt

then there type this command to check if the command is executable

Former Member
0 Kudos

Mmmm I think the problem is when connecting through FTP the command isn't usable. It's only usable when on the UNIX server. So I guess the only way to go is a shell script...