S
SamuelXiao
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' (e-mail address removed) "};
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 AIX forum.
Any help would be highly appreciated.
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' (e-mail address removed) "};
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 AIX forum.
Any help would be highly appreciated.