<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SIGINT to terminate a batch job? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/sigint-to-terminate-a-batch-job/m-p/4467119#M17059</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I've a java program with a shutdownhook to catch a ctrl+c to clean some things before terminating.&lt;BR /&gt;Now I wanted to start the program with a submit and wondered if I can do a normal shutdown of the application.&lt;BR /&gt;Is there any way to do this or is a batch job always terminated abruptly?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
    <pubDate>Mon, 27 Jul 2009 08:38:45 GMT</pubDate>
    <dc:creator>Rene L.</dc:creator>
    <dc:date>2009-07-27T08:38:45Z</dc:date>
    <item>
      <title>SIGINT to terminate a batch job?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sigint-to-terminate-a-batch-job/m-p/4467119#M17059</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I've a java program with a shutdownhook to catch a ctrl+c to clean some things before terminating.&lt;BR /&gt;Now I wanted to start the program with a submit and wondered if I can do a normal shutdown of the application.&lt;BR /&gt;Is there any way to do this or is a batch job always terminated abruptly?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Mon, 27 Jul 2009 08:38:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sigint-to-terminate-a-batch-job/m-p/4467119#M17059</guid>
      <dc:creator>Rene L.</dc:creator>
      <dc:date>2009-07-27T08:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: SIGINT to terminate a batch job?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sigint-to-terminate-a-batch-job/m-p/4467120#M17060</link>
      <description>Ctrl+C sends a SIGINT (signal 2) to the image.&lt;BR /&gt;So if You send a signal 2 , the program should see no difference.&lt;BR /&gt;There are Unix-compatible KILL programs to send a signal, either in GNV or else on the freeware.&lt;BR /&gt;&lt;BR /&gt; kill -2 procid&lt;BR /&gt;&lt;BR /&gt;Process-id can be found if You know the batch entry number, by default the process name is BATCH_entry .&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Jul 2009 10:15:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sigint-to-terminate-a-batch-job/m-p/4467120#M17060</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-07-27T10:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: SIGINT to terminate a batch job?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sigint-to-terminate-a-batch-job/m-p/4467121#M17061</link>
      <description>&lt;!--!*#--&gt;Standard dcl can do this:&lt;BR /&gt;&lt;BR /&gt;delete/entry=entry-# queue-name&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Jul 2009 10:17:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sigint-to-terminate-a-batch-job/m-p/4467121#M17061</guid>
      <dc:creator>Heuser-Hofmann</dc:creator>
      <dc:date>2009-07-27T10:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: SIGINT to terminate a batch job?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sigint-to-terminate-a-batch-job/m-p/4467122#M17062</link>
      <description>Ah yes, delete/entry results in stop/entry for a running job.&lt;BR /&gt;&lt;BR /&gt;BTW, instead of using SIGINT or other signals, the program could simply establish an EXIT routine ( atexit(exitproc) in C, don't know the corresponding Java call). &lt;BR /&gt;A stop/entry is then forcing the exit routine call.&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Jul 2009 10:29:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sigint-to-terminate-a-batch-job/m-p/4467122#M17062</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-07-27T10:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: SIGINT to terminate a batch job?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sigint-to-terminate-a-batch-job/m-p/4467123#M17063</link>
      <description>Thanks for the answers, but in this case, the delete or stop command to stop the job, acts in the same way as a crtl-y. I need a ctrl-c which does no force exit of the program.</description>
      <pubDate>Mon, 27 Jul 2009 11:01:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sigint-to-terminate-a-batch-job/m-p/4467123#M17063</guid>
      <dc:creator>Rene L.</dc:creator>
      <dc:date>2009-07-27T11:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: SIGINT to terminate a batch job?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sigint-to-terminate-a-batch-job/m-p/4467124#M17064</link>
      <description>Easy to confuse:&lt;BR /&gt; A stop/entry just forces exit, i.e. invokes an    "atexit" routine.&lt;BR /&gt; Sending a signal 2 (KILL -SIGINT) is invoking a routine established by a signal(SIGINT,routine) call.&lt;BR /&gt;&lt;BR /&gt;So my first answer told to use KILL on the process-id.&lt;BR /&gt;Stop/entry invokes only the exit routine, not the signal catcher.&lt;BR /&gt;I assume Your "shutdownhook to catch a ctrl+c" is a signal handler.</description>
      <pubDate>Mon, 27 Jul 2009 11:12:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sigint-to-terminate-a-batch-job/m-p/4467124#M17064</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-07-27T11:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: SIGINT to terminate a batch job?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sigint-to-terminate-a-batch-job/m-p/4467125#M17065</link>
      <description>Ok, will try that and provide feedback.&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 27 Jul 2009 11:43:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sigint-to-terminate-a-batch-job/m-p/4467125#M17065</guid>
      <dc:creator>Rene L.</dc:creator>
      <dc:date>2009-07-27T11:43:14Z</dc:date>
    </item>
  </channel>
</rss>

