java.io.IOException: CreateProcess

Hello,

I try to use the “System execute” component.
My XML Code:

<?xml version="1.0" encoding="UTF-8"?> rm test.txt

My error message
INFO: Sucessfully started all nodes in phase!
java.io.IOException: CreateProcess: rm test.txt error=2
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at org.jetel.component.SystemExecute.run(SystemExecute.java:165)
at java.lang.Thread.run(Unknown Source)
29 août 2006 11:36:19 org.jetel.graph.WatchDog watch

I don’t understand the error message?

Thanks in advance

Hi !
Executing native processes from Java is not an easy task.
We are currently updating SYS_EXECUTE to be more “user friendly”.

One thing you can try is to create a batch/shell script which you execute instead of directly calling “rm test.txt”.

Put it (rm test.txt) into “command.sh” and execute "sh command.sh " instead.

That is probably the safest way for now.

David.