M
Mitschu
Hello
I'm using java.lang.runtime.exec() in Windows enviroment without
problems. Now on a linux Server it won't run. Can you see an error?
Has the string to be terminated with sth? I tried \r and \n without
success.
try {
Runtime runtime = Runtime.getRuntime();
Process p = runtime.exec( "echo 'tttt' >> /var/test.txt" );
p.waitFor();
out.println("Exit status: " + p.exitValue() );
}catch(Exception e) {
out.println("Error: " + e );
}
Thanks for any help.
Michael
I'm using java.lang.runtime.exec() in Windows enviroment without
problems. Now on a linux Server it won't run. Can you see an error?
Has the string to be terminated with sth? I tried \r and \n without
success.
try {
Runtime runtime = Runtime.getRuntime();
Process p = runtime.exec( "echo 'tttt' >> /var/test.txt" );
p.waitFor();
out.println("Exit status: " + p.exitValue() );
}catch(Exception e) {
out.println("Error: " + e );
}
Thanks for any help.
Michael