I have a question from one of the groups that are testing their application on one of our Redhat boxes. Could someone pls. review and provide some insight?
Issue running a java program. The program issues a:
cmd = System.in.read();
System.out.println("Read a command");
call. The call continuously returns a -1 (end of file). It only happens when I run the program FROM within a .sh file and have the program started up in the background. Any thoughts. It probably has something to do with a background process starting from a shell script is not getting assigned an input stream and the read call thinks it reached EOF, but it is only happening under Linux. So, any thoughts?
Your helpful tips would be highly valuable.
Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests