Hi gents,
-- good news are: I am again able to work (and *am* working again ;-)) -- bad news are: I do have again *to ask a question* (when permitted by the community, at all <grin> I do, with my program, have the need to *CATCH* the condition when the user does press Control-C to interrupt a batch program ... I'm really sorry to say, that, switching between so many languages, I cannot recall how I shall have to code that. :-( Can anybody more fluent in NetRexx and Java, as I am, please give advise, with a short sample, please! Thanks in advacne, Thomas. -- Thomas Schneider, IT Consulting; http://www.thsitc.com; Vienna, Austria, Europe _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
Thomas Schneider, Vienna, Austria (Europe) :-)
www.thsitc.com www.db-123.com |
You can't "CATCH" CTRL-C if I understand your meaning, but you can
detect it and start a cleanup thread: http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#addShutdownHook%28java.lang.Thread%29 -- KK On 1/21/2013 12:53 AM, Thomas Schneider wrote: > Hi gents, > > -- good news are: I am again able to work (and *am* working again ;-)) > -- bad news are: I do have again *to ask a question* (when > permitted by the community, at all <grin> > > I do, with my program, have the need to *CATCH* the condition when > the user does press > > Control-C > > to interrupt a batch program ... > > I'm really sorry to say, that, switching between so many languages, I > cannot recall how I shall have to code that. :-( > > Can anybody more fluent in NetRexx and Java, as I am, please give > advise, with a short sample, please! > > Thanks in advacne, > Thomas. > > _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Kermit,
thank you *very much* for this useful hint, which shall solve my issue. I will now go this root. I also do think this hint shall be useful to other NetRexx users as well, as it will allow to close all Files properly in case of an otherwise UN-CATCHED abort condition. Have a nice week, Thomas. PS: Of Course, you did understand quite exactly what problem I do want to solve. ================================================================================== Am 21.01.2013 23:26, schrieb Kermit Kiser: > You can't "CATCH" CTRL-C if I understand your meaning, but you can > detect it and start a cleanup thread: > > http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#addShutdownHook%28java.lang.Thread%29 > > > -- KK > > On 1/21/2013 12:53 AM, Thomas Schneider wrote: >> Hi gents, >> >> -- good news are: I am again able to work (and *am* working again >> ;-)) >> -- bad news are: I do have again *to ask a question* (when >> permitted by the community, at all <grin> >> >> I do, with my program, have the need to *CATCH* the condition when >> the user does press >> >> Control-C >> >> to interrupt a batch program ... >> >> I'm really sorry to say, that, switching between so many languages, I >> cannot recall how I shall have to code that. :-( >> >> Can anybody more fluent in NetRexx and Java, as I am, please give >> advise, with a short sample, please! >> >> Thanks in advacne, >> Thomas. >> >> > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ > > -- Thomas Schneider, IT Consulting; http://www.thsitc.com; Vienna, Austria, Europe _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
Thomas Schneider, Vienna, Austria (Europe) :-)
www.thsitc.com www.db-123.com |
In reply to this post by Kermit Kiser
Actually, it's closer to "that depends".
http://www.ibm.com/developerworks/java/library/i-signalhandling/ -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Kermit Kiser Sent: Monday, January 21, 2013 4:26 PM To: IBM Netrexx Subject: Re: [Ibm-netrexx] How can I catch the BREAK Interrupt in a NetRexx Program ? You can't "CATCH" CTRL-C if I understand your meaning, but you can detect it and start a cleanup thread: http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#addShutdownHook%28java.lang.Thread%29 -- KK On 1/21/2013 12:53 AM, Thomas Schneider wrote: > Hi gents, > > -- good news are: I am again able to work (and *am* working again ;-)) > -- bad news are: I do have again *to ask a question* (when > permitted by the community, at all <grin> > > I do, with my program, have the need to *CATCH* the condition when > the user does press > > Control-C > > to interrupt a batch program ... > > I'm really sorry to say, that, switching between so many languages, I > cannot recall how I shall have to code that. :-( > > Can anybody more fluent in NetRexx and Java, as I am, please give > advise, with a short sample, please! > > Thanks in advacne, > Thomas. > > _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hello Mike Measel, there ...
(1) What I do really *like* is: That you did respond :-) Will have to look at thatm, for sure (2) What I also, as well, do like, is the excellent work you're doing for ooRexx Dialog. ... I'm currently watching this only, by the oorexx users group, but *am finding You* very responsiveness and professional! Thanks for both issues above! Thomas. ================================================================================ Am 22.01.2013 14:31, schrieb Measel, Mike: > Actually, it's closer to "that depends". > > http://www.ibm.com/developerworks/java/library/i-signalhandling/ > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Kermit Kiser > Sent: Monday, January 21, 2013 4:26 PM > To: IBM Netrexx > Subject: Re: [Ibm-netrexx] How can I catch the BREAK Interrupt in a NetRexx Program ? > > You can't "CATCH" CTRL-C if I understand your meaning, but you can detect it and start a cleanup thread: > > http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#addShutdownHook%28java.lang.Thread%29 > > -- KK > > On 1/21/2013 12:53 AM, Thomas Schneider wrote: >> Hi gents, >> >> -- good news are: I am again able to work (and *am* working again ;-)) >> -- bad news are: I do have again *to ask a question* (when >> permitted by the community, at all <grin> >> >> I do, with my program, have the need to *CATCH* the condition when >> the user does press >> >> Control-C >> >> to interrupt a batch program ... >> >> I'm really sorry to say, that, switching between so many languages, I >> cannot recall how I shall have to code that. :-( >> >> Can anybody more fluent in NetRexx and Java, as I am, please give >> advise, with a short sample, please! >> >> Thanks in advacne, >> Thomas. >> >> > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ > > -- Thomas Schneider, IT Consulting; http://www.thsitc.com; Vienna, Austria, Europe _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
Thomas Schneider, Vienna, Austria (Europe) :-)
www.thsitc.com www.db-123.com |
Free forum by Nabble | Edit this page |