... meinst du sowas, wie im folgenden Beispiel?

command = 'cd $AppServer4RPG_HOME;cp=.:conf:;'
+ 'for file in $(ls *.jar);do cp=$cp$file:;done;'
+ 'for file in $(ls lib/*.jar);do cp=$cp$file:;done;'
+ 'java -cp $cp de.bender_dv.jvagate.communication.Receiver';
system('qsh cmd(''' + %trim(command) + ''')');