Hi Marc, in our Java GAP library, we pass the '-p' parameter to GAP. This ensures that GAP produces output that is easier to parse. For instance, whenever GAP is waiting for input, it always outputs @i first (or @e in case of an error). The code in which we handle this can be found at: https://mathdox.org/svn/repos/public/gapclient/source/java/org/mathdox/gapclient/GapConnection.java
You can also check out the complete library from https://mathdox.org/svn/repos/public/gapclient and https://mathdox.org/svn/repos/public/socketservice using Subversion. I hope this helps, Mark On Monday 25 September 2006 11:42, [EMAIL PROTECTED] wrote: > Hello, > > My name is Marc Frincu and I am a computer programmer in grid computing. > I have successfully launched gap using a child process from Java, but > I have problems if the GAP input is incorrect. I tried using a while > loop to read lines from the BufferedReader but with no success. Could > anyone help me? > > Best regards, _______________________________________________ Forum mailing list [email protected] http://mail.gap-system.org/mailman/listinfo/forum
