ROSE
02-20-2003, 09:05
Hi all,
I have created a java service that executes a shell (we’re currently running in version 4.0.1). This shell (test.sh) contains this code : echo "toto1" > test.txt
And this is my java service :
java.lang.String cmds[] = new String[1];
cmds[0] = "/applis/ExchangeFolder/test.sh";
// execute the command
try
{
Process pr = Runtime.getRuntime().exec(cmds);
}
catch(Exception e)
{
System.out.println("Execution du test "+e.getMessage());
}
When I run it, the audit.log tells me it’s OK but there’s no file test.txt created ! Have I missed something ? Or is there another way to do it ?
Any help is highly appreciated! Thanks,
Phil
I have created a java service that executes a shell (we’re currently running in version 4.0.1). This shell (test.sh) contains this code : echo "toto1" > test.txt
And this is my java service :
java.lang.String cmds[] = new String[1];
cmds[0] = "/applis/ExchangeFolder/test.sh";
// execute the command
try
{
Process pr = Runtime.getRuntime().exec(cmds);
}
catch(Exception e)
{
System.out.println("Execution du test "+e.getMessage());
}
When I run it, the audit.log tells me it’s OK but there’s no file test.txt created ! Have I missed something ? Or is there another way to do it ?
Any help is highly appreciated! Thanks,
Phil