Hi All,
I have a Java program that needs to run a command in AIX environment.
The code is as follows:
String[] cmds ={"/bin/ksh","-c","uuencode /log/test.log attached.log |
mailx -s 'Testing'
a...@example.com "};
Process process = Runtime.getRuntime().exec(cmds);
But I found that it does not work, the cmd is fine because I have
tried it in AIX without using these code. It seems that AIX does not
allow the process to be created?
Does anyone know if there is any configuration to allow it in AIX? I
have also post this question in the Java forum.
Any help would be highly appreciated.