<?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: Spawn command in Asynchronous mode in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776890#M9629</link>
    <description>You should specify the NOWAIT flag to let the main process continue.&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
    <pubDate>Tue, 25 Apr 2006 00:05:20 GMT</pubDate>
    <dc:creator>Karl Rohwedder</dc:creator>
    <dc:date>2006-04-25T00:05:20Z</dc:date>
    <item>
      <title>Spawn command in Asynchronous mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776889#M9628</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Could some one please let me know syntax for a spwan command on OPen VMS?&lt;BR /&gt;i need to run a C program from Uniface on Open VMS in asynchronous mode.&lt;BR /&gt;&lt;BR /&gt;If I use this&lt;BR /&gt;;spawn_str = "%%spawn_str %%$LIST$"&lt;BR /&gt;&lt;BR /&gt;it runs the program in synchronous mode.&lt;BR /&gt;&lt;BR /&gt;But I want to run this C pgm in Asynch mode, as per the documentation, if I use PIPE (-------)&amp;amp;, it doesnt work.&lt;BR /&gt;;spawn_str = "PIPE ( %%spawn_str %%$LIST$ ) &amp;amp;"&lt;BR /&gt;&lt;BR /&gt;Could some one please let me know how to run in asynch mode?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rajni.</description>
      <pubDate>Mon, 24 Apr 2006 23:46:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776889#M9628</guid>
      <dc:creator>Shashikant_B</dc:creator>
      <dc:date>2006-04-24T23:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Spawn command in Asynchronous mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776890#M9629</link>
      <description>You should specify the NOWAIT flag to let the main process continue.&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Tue, 25 Apr 2006 00:05:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776890#M9629</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2006-04-25T00:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Spawn command in Asynchronous mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776891#M9630</link>
      <description>What Karl was telling: the resulting DCL command should be &lt;BR /&gt;  SPAWN/NOWAIT/OUTPUT=my.log mycommand param1 param2 ...&lt;BR /&gt;&lt;BR /&gt;This is almost equivalent to &lt;BR /&gt; PIPE mycommand param1 param2 ... &amp;gt; my.log &amp;amp;&lt;BR /&gt;&lt;BR /&gt;Whatever it means in Uniface syntax is beyond my knowlege.&lt;BR /&gt;&lt;BR /&gt;SPAWN is the original VMS way of executing a command in a (asynchroneous) sub-process.&lt;BR /&gt;The later PIPE command was added to approach the syntax and behaviour of Unix systems.&lt;BR /&gt;&lt;BR /&gt;As seen in previous threads, You think it is necessary to combine spawn and some other async program execution (creprc or pipe).&lt;BR /&gt;Only one or the other method is o.k..&lt;BR /&gt;I see no sense in Spawning a PIPE, it just creates another subprocess-level. &lt;BR /&gt;Or are You thinking on some combination of fork/exec(l,v,vp) in Unix ?&lt;BR /&gt;&lt;BR /&gt;And: whatever method of async execution You choose, always redirect output to some file (except in interactive tests on a terminal), &lt;BR /&gt; SPAWN/OUTPUT=&lt;BR /&gt; PIPE ... &amp;gt; logfile&lt;BR /&gt;&lt;BR /&gt;And not to forget: in VMS there is HELP !&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Apr 2006 03:33:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776891#M9630</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2006-04-25T03:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Spawn command in Asynchronous mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776892#M9631</link>
      <description>Hello Rajni,&lt;BR /&gt;&lt;BR /&gt;Because readers here are unlikey to be familiar with Uniface rules, you may have to help us understand that.&lt;BR /&gt;&lt;BR /&gt;When you mention 'spawn' we expect you are talking about the RTL Library routine LIB$SPAWN or the DCL command 'SPAWN'.&lt;BR /&gt;&lt;BR /&gt;The RTL function have a 4th argument (see doc) which is  flag where bit-0 (value 1) indicates that the main process should not wait for the completion of the sub-process to be created.&lt;BR /&gt;A similar flag is available in DCL (/NOWAIT).&lt;BR /&gt;In both cases the child can continue asynchroneously, but *must* finish before the parent stops, otherwise it will be killed.&lt;BR /&gt;&lt;BR /&gt;An alternative is to create a detached process, which is also async. Please check the VMS doc for details, notably the system service SYS$CREPRC.&lt;BR /&gt;&lt;BR /&gt;If the Spawn call is made by Uniface code, then tt is not clear to me whether you can pass along that flag or not. Check with Uniface (documentation).&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Apr 2006 03:45:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776892#M9631</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-04-25T03:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Spawn command in Asynchronous mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776893#M9632</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Thanks for the replies.&lt;BR /&gt;The syntax which i have written here is from Uniface.&lt;BR /&gt;Am not able to run the DCL script in asynch mode from Uniface.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rajni.</description>
      <pubDate>Tue, 25 Apr 2006 04:05:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776893#M9632</guid>
      <dc:creator>Shashikant_B</dc:creator>
      <dc:date>2006-04-25T04:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Spawn command in Asynchronous mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776894#M9633</link>
      <description>Uniface, as a commercial product, probably has a support line, why not ask them. &lt;BR /&gt;&lt;BR /&gt;Just clearly state, what You really intend to produce on the VMS side:&lt;BR /&gt;Does SPAWN/NOWAIT/OUTPUT=my.log mycommand p1 p2 &lt;BR /&gt;work directly under VMS/DCL ? &lt;BR /&gt;&lt;BR /&gt;If yes, then it is up to Uniface to produce the right call-frame or request to execute this DCL command on a target VMS system.&lt;BR /&gt;&lt;BR /&gt;Apparently noone here in this forum has experience with Uniface (?) .&lt;BR /&gt;&lt;BR /&gt;If the above does not work directly on VMS, then tell us what does not work, error messaqges etc.</description>
      <pubDate>Tue, 25 Apr 2006 06:49:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776894#M9633</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2006-04-25T06:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Spawn command in Asynchronous mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776895#M9634</link>
      <description>Rajni,&lt;BR /&gt;&lt;BR /&gt;Please bare in mind that a subprocess (spawn, LIB$SPAWN, LIB$DO_COMMAND etc) is a subprocess and therefore killed the moment the main (owner) process dies. (logs off or killed  otherwise).&lt;BR /&gt;To create an independant process (a detached process) you could use something like RUN SYS$SYSTEM:LOGINOUT.EXE or SYS$CREPRC.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Martin Hoogenboom</description>
      <pubDate>Wed, 26 Apr 2006 15:03:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776895#M9634</guid>
      <dc:creator>Martin Hoogenboom</dc:creator>
      <dc:date>2006-04-26T15:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Spawn command in Asynchronous mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776896#M9635</link>
      <description>my (ancient) knowledge of uniface on vms is that there is a uniface server process running in a batch queue, and all work is done in the context of this process.&lt;BR /&gt;Have a look in authorize for a uniface username/uic and check quotas/limits eg. prclm.&lt;BR /&gt;Also check the accounting log for the uniface account, and log files under uniface directories.&lt;BR /&gt;Phil&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Apr 2006 22:25:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776896#M9635</guid>
      <dc:creator>Phil.Howell</dc:creator>
      <dc:date>2006-04-26T22:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Spawn command in Asynchronous mode</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776897#M9636</link>
      <description>&lt;BR /&gt;Rajni also posted this question in comp.os.vms.&lt;BR /&gt;&lt;BR /&gt;John Briggs seems to have given a good answer there.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://groups.google.com/group/comp.os.vms/browse_frm/thread/77298c3296583c01/#" target="_blank"&gt;http://groups.google.com/group/comp.os.vms/browse_frm/thread/77298c3296583c01/#&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Apr 2006 06:55:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawn-command-in-asynchronous-mode/m-p/3776897#M9636</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-04-27T06:55:48Z</dc:date>
    </item>
  </channel>
</rss>

