<?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 Re: CTRL/C signal command in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/ctrl-c-signal-command/m-p/4530857#M43088</link>
    <description>&lt;!--!*#--&gt;&amp;gt; Here what command should i use for CTRL/C ?&lt;BR /&gt;&lt;BR /&gt;I know of no way to do a real CTRL/C there.&lt;BR /&gt;&lt;BR /&gt;alp $ smm    &lt;BR /&gt;%DCL-W-IVVERB, unrecognized command verb - check validity and spelling&lt;BR /&gt; \SMM\&lt;BR /&gt;&lt;BR /&gt;I don't know what "smm" means to you.&lt;BR /&gt;Whatever it is, in a batch job, it may work&lt;BR /&gt;differently from the way it works with a&lt;BR /&gt;terminal for SYS$COMMAND.  Have you tried it?</description>
    <pubDate>Tue, 10 Nov 2009 14:03:41 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2009-11-10T14:03:41Z</dc:date>
    <item>
      <title>CTRL/C signal command</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ctrl-c-signal-command/m-p/4530856#M43087</link>
      <description>I want to run a batch that requires CTRL/C ternminate action. &lt;BR /&gt;For example i want to automate the memory check process and i need to use CTRL/C.&lt;BR /&gt;&lt;BR /&gt;cli&lt;BR /&gt;smm&lt;BR /&gt;CTRL/C&lt;BR /&gt;endcli&lt;BR /&gt;&lt;BR /&gt;Here what command should i use for CTRL/C ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2009 11:26:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ctrl-c-signal-command/m-p/4530856#M43087</guid>
      <dc:creator>Kivanc_1</dc:creator>
      <dc:date>2009-11-10T11:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: CTRL/C signal command</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ctrl-c-signal-command/m-p/4530857#M43088</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Here what command should i use for CTRL/C ?&lt;BR /&gt;&lt;BR /&gt;I know of no way to do a real CTRL/C there.&lt;BR /&gt;&lt;BR /&gt;alp $ smm    &lt;BR /&gt;%DCL-W-IVVERB, unrecognized command verb - check validity and spelling&lt;BR /&gt; \SMM\&lt;BR /&gt;&lt;BR /&gt;I don't know what "smm" means to you.&lt;BR /&gt;Whatever it is, in a batch job, it may work&lt;BR /&gt;differently from the way it works with a&lt;BR /&gt;terminal for SYS$COMMAND.  Have you tried it?</description>
      <pubDate>Tue, 10 Nov 2009 14:03:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ctrl-c-signal-command/m-p/4530857#M43088</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-11-10T14:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: CTRL/C signal command</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ctrl-c-signal-command/m-p/4530858#M43089</link>
      <description>Batch processes do not have terminals, and it is data input from a terminal or from a pseudo-terminal that is fielded by the terminal driver, and it is the terminal driver then passes along the command to DCL to process the ^C or ^Y input.&lt;BR /&gt;&lt;BR /&gt;Here, you can fix the code to exit properly (which would generally be the better approach here), or you can send a STOP/ID /EXIT at the batch process from a controlling application or job scheduler, and these will work from batch.   &lt;BR /&gt;&lt;BR /&gt;The most direct analog to your request would be to run the application via pseudo terminal and send the ^C under application control; the pseudo-terminal allows an application-controlling program to control another; the second operates as if it had a terminal, but its input and output are processed by the controlling application.    This is not available in batch; you'd need to use what amounts to a detached process with a terminal here, not a batch process.  (Again, batch processes don't have terminals.)&lt;BR /&gt;&lt;BR /&gt;And yes, you could configure some wiring and a real terminal, and connect the application and the controlling application that way; pseudo-terminals eliminate the cabling.  That still doesn't get you access into the context of the batch job, though.&lt;BR /&gt;&lt;BR /&gt;If your goal is to activate a specific ^C or ^Y handler within the image executing within the batch process, that's (barring pseudo-terminals) not directly available AFAIK.  STOP will send an exit but won't typically activate any ^C handlers or such that might be present within the application.&lt;BR /&gt;&lt;BR /&gt;The best approach (and presuming you have the source code available) is to implement a different exit path within the image (eg: an exit command), or to implement some form of interprocess communications here (anything from simple to complex) to notify the batch process it should exit.&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2009 14:41:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ctrl-c-signal-command/m-p/4530858#M43089</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-11-10T14:41:41Z</dc:date>
    </item>
  </channel>
</rss>

