Hi,
I am trying to run a unix command from within the java code. I am not able to make it work. I am enclosing the code and the error message that I am getting. Any help is highly appreciated.
The error message that I am getting is
Here is the standard output of the command:
SLu|%%$$=
Here is the standard error of the command (if any):
cat: cannot open |
cat: cannot open A_UNIX_PROGRAM
cat: cannot open -d
Looks like the cat command is working and not the pipe command and the command after the pipe. But when I run the UNIX command from the command prompt I get the expected result.
I am running this program on AIX UNIX machine.
I am trying to run a unix command from within the java code. I am not able to make it work. I am enclosing the code and the error message that I am getting. Any help is highly appreciated.
The error message that I am getting is
Here is the standard output of the command:
SLu|%%$$=
Here is the standard error of the command (if any):
cat: cannot open |
cat: cannot open A_UNIX_PROGRAM
cat: cannot open -d
Looks like the cat command is working and not the pipe command and the command after the pipe. But when I run the UNIX command from the command prompt I get the expected result.
I am running this program on AIX UNIX machine.