I don't think there's any way of actually capturing this output, or preventing it being added to stderr, but it should also be accompanied by an IOException which you can catch in the Java code.
Happy to be corrected if I'm wrong! On 8 December 2011 12:45, smaran <penugon...@gmail.com> wrote: > If the modem is taken out from the PC it generates > WaitCommEvent: Error 31 > WaitCommEvent: Error 31 > WaitCommEvent: Error 31 > WaitCommEvent: Error 31 > WaitCommEvent: Error 31 > WaitCommEvent: Error 31 > WaitCommEvent: Error 31 > WaitCommEvent: Error 31 > > on standard output. > > How to capture this in program and report the same in a Java Based GUI > application as an error that the > "Modem got disconnected. Pl. check" > > > How to do the same in Windows Environment. > > Regards > PCReddy > > -- > You received this message because you are subscribed to the Google Groups > "SMSLib Discussion Group" group. > To post to this group, send email to smslib@googlegroups.com. > To unsubscribe from this group, send email to > smslib+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/smslib?hl=en. > -- You received this message because you are subscribed to the Google Groups "SMSLib Discussion Group" group. To post to this group, send email to smslib@googlegroups.com. To unsubscribe from this group, send email to smslib+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/smslib?hl=en.