<?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: LIB$SPAWN in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694852#M73496</link>
    <description>Thanks, Now I am able to run the dcl script inside my program as suggested by Jan &amp;amp; Robert.&lt;BR /&gt;&lt;BR /&gt;The next part is :&lt;BR /&gt;&lt;BR /&gt;When my server is directly comming as duty server, it will work. But in my standby server where all the processes are remain in HIB. Once duty server crashed, the standby server processes will come into LEF &amp;amp; CEF state and will become duty server. So what should I do for taking care that part ?</description>
    <pubDate>Wed, 21 Dec 2005 09:59:57 GMT</pubDate>
    <dc:creator>Sk Noorul  Hassan</dc:creator>
    <dc:date>2005-12-21T09:59:57Z</dc:date>
    <item>
      <title>LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694832#M73476</link>
      <description>Hi,&lt;BR /&gt;I am trying to execute one dcl script in  a program using lib$spawn. It seems the program is not executing the script as I am not getting the required result. Is it possible to know, if the script has been successfully executed at DCL prompt or not ?</description>
      <pubDate>Tue, 20 Dec 2005 06:13:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694832#M73476</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2005-12-20T06:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694833#M73477</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;do you check the system service status return value from the LIB$SPAWN call ?&lt;BR /&gt;&lt;BR /&gt;Do you use the COMPLETION_STATUS parameter ? It will receive the exit status of the spawned subprocess.&lt;BR /&gt;&lt;BR /&gt;You can also check with accounting, whether the subprocess has been created at all and what it's exit status is.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Tue, 20 Dec 2005 06:32:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694833#M73477</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2005-12-20T06:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694834#M73478</link>
      <description>And finally you can do @script/out=xxx&lt;BR /&gt;to capture the result, if any.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 20 Dec 2005 06:44:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694834#M73478</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2005-12-20T06:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694835#M73479</link>
      <description>Volker,&lt;BR /&gt;Can you write few lines how to get the completion status in a program,  I am using the following line inside program&lt;BR /&gt;&lt;BR /&gt;lib$spawn('@path:xx.com');</description>
      <pubDate>Tue, 20 Dec 2005 06:51:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694835#M73479</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2005-12-20T06:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694836#M73480</link>
      <description>There should be a C example program in SYS$EXAMPLES, which includes a fully coded LIB$SPAWN invocation in C:&lt;BR /&gt;&lt;BR /&gt;SYS$COMMON:[SYSHLP.EXAMPLES]ALPHA_LOGGER.C&lt;BR /&gt;&lt;BR /&gt;   status = LIB$SPAWN(0, &amp;amp;devnam, &amp;amp;devnam, &amp;amp;flags, 0, &amp;amp;pid, 0, 0,&lt;BR /&gt;                      subprocess_exit, 0);&lt;BR /&gt;   if (status &amp;amp; SS$_NORMAL)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Tue, 20 Dec 2005 06:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694836#M73480</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2005-12-20T06:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694837#M73481</link>
      <description>Volker,&lt;BR /&gt;&lt;BR /&gt;Now after putting status check, I could found that lib$spawn is returning not sucess value i.e. DCL script is not executing. Can u guide me why this is not executing ??</description>
      <pubDate>Tue, 20 Dec 2005 07:33:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694837#M73481</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2005-12-20T07:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694838#M73482</link>
      <description>You need to print both the STATUS value as returned from the LIB$SPAWN call (and the COMPLETION_STATUS, IF LIB$SPAWN returned with SS$_NORMAL).&lt;BR /&gt;&lt;BR /&gt;Then use that value and translate it to the appropriate error message:&lt;BR /&gt;&lt;BR /&gt;$ WRITE SYS$OUTPUT F$MESSAGE(value)&lt;BR /&gt;or&lt;BR /&gt;$ EXIT value&lt;BR /&gt;&lt;BR /&gt;Make sure you use the correct radix (hex or decimal) depending on your printf format statement.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Tue, 20 Dec 2005 07:44:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694838#M73482</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2005-12-20T07:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694839#M73483</link>
      <description>Hi, when I am trying to run this program &lt;BR /&gt;&lt;BR /&gt;run/proc= program_name/output=err.txt program &lt;BR /&gt;&lt;BR /&gt;I am getting 'no CLI present to perform function' error in the file err.txt&lt;BR /&gt;&lt;BR /&gt;pls suggest</description>
      <pubDate>Tue, 20 Dec 2005 07:45:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694839#M73483</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2005-12-20T07:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694840#M73484</link>
      <description>When you run your program in a SUB-process without DCL, there is no CLI to process a  LIB$SPAWN...&lt;BR /&gt;&lt;BR /&gt;It should work, if you run your program straight in your process with: $ RUN PROGRAM&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Tue, 20 Dec 2005 07:53:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694840#M73484</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2005-12-20T07:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694841#M73485</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;When I am running the program using "RUN prog_name", it is executing my DCL script and is not releasing the terminal. But when I am putting in detached mode, it is not executing my DCL script.&lt;BR /&gt;&lt;BR /&gt;Pls suggest</description>
      <pubDate>Tue, 20 Dec 2005 10:59:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694841#M73485</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2005-12-20T10:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694842#M73486</link>
      <description>Sk,&lt;BR /&gt;&lt;BR /&gt;if you want to execute DCL in a dtetached process (or spawned from such, as you are trying), then use&lt;BR /&gt;$ RUN SYS$SYSTEM:LOGINOUT.EXE/INPUT=&lt;INPUTFILE which="" runs="" your="" process=""&gt;/OUTPUT=&lt;YOU specify=""&gt;&lt;BR /&gt;This gives your process the CLI, which means, enables DCL.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;/YOU&gt;&lt;/INPUTFILE&gt;</description>
      <pubDate>Tue, 20 Dec 2005 11:05:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694842#M73486</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-12-20T11:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694843#M73487</link>
      <description>Instead of &lt;BR /&gt;&lt;BR /&gt;$ run/proc= program_name/output=err.txt program &lt;BR /&gt;&lt;BR /&gt;Create a command procedure such as &lt;BR /&gt;&lt;BR /&gt;run_program_name.com&lt;BR /&gt;&lt;BR /&gt;Then you can use this command:&lt;BR /&gt;&lt;BR /&gt;run/proc= program_name/output=err.txt /input=disk:[dir]run_program_name.com sys$system:loginout/authorize&lt;BR /&gt;&lt;BR /&gt;This will create a complete DCL environment, including running the LOGIN.COM of the username the command is run under.&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Tue, 20 Dec 2005 11:08:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694843#M73487</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2005-12-20T11:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694844#M73488</link>
      <description>Ha!  Jan, you and I must have been typing the same solution at the same time!&lt;BR /&gt;&lt;BR /&gt;Proost!&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Tue, 20 Dec 2005 11:09:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694844#M73488</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2005-12-20T11:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694845#M73489</link>
      <description>Hi, &lt;BR /&gt;I am trying to execute my DCL script using LIB$SPAWN inside a PASCAL program to create &amp;amp; enable a device on a terminal server port.&lt;BR /&gt;&lt;BR /&gt;This script has to run along with the PASCAL code.</description>
      <pubDate>Tue, 20 Dec 2005 12:37:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694845#M73489</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2005-12-20T12:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694846#M73490</link>
      <description>&lt;BR /&gt;&amp;gt;LIB$SPAWN inside a PASCAL program to&lt;BR /&gt;&amp;gt;create &amp;amp; enable a device on a terminal&lt;BR /&gt;&amp;gt;server port.&lt;BR /&gt;&lt;BR /&gt;   Why not create and enable the terminal server port directly from your program? See I/O Users Guide, Chapter Terminal Driver, in particular example 5-1 in Section 5.6.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/82FINAL/aa-pv6sg-tk/aa-pv6sg-tk.PDF" target="_blank"&gt;http://h71000.www7.hp.com/doc/82FINAL/aa-pv6sg-tk/aa-pv6sg-tk.PDF&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For further assistance, please log a case with your local customer support centre.</description>
      <pubDate>Tue, 20 Dec 2005 15:35:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694846#M73490</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-12-20T15:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694847#M73491</link>
      <description>Hi, Is it possible to use lib$do_command in this case, inside my pascal program.If yes, what environement definition is required for this.&lt;BR /&gt;Pls suggest</description>
      <pubDate>Wed, 21 Dec 2005 08:00:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694847#M73491</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2005-12-21T08:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694848#M73492</link>
      <description>&lt;BR /&gt;Yes, you can use LIB$DO_COMMAND, but that work a little like the Unix 'exec' and conflicts with your requirement "This script has to run along with the PASCAL code." &lt;BR /&gt;&lt;BR /&gt;As per online doc:&lt;BR /&gt;&lt;BR /&gt;LIB$DO_COMMAND&lt;BR /&gt;Execute Command&lt;BR /&gt;The Execute Command routine stops program execution and directs the command language interpreter (CLI) to execute a command that you supply as the argument. If successful, LIB$DO_COMMAND does not return control to the calling program. Instead, LIB$DO_COMMAND begins execution of the specified command.&lt;BR /&gt;&lt;BR /&gt;If you want control to return to the caller, use LIB$SPAWN instead.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;fwiw.&lt;BR /&gt;Hein.</description>
      <pubDate>Wed, 21 Dec 2005 08:07:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694848#M73492</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-12-21T08:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694849#M73493</link>
      <description>Sk,&lt;BR /&gt;&lt;BR /&gt;LIB$DO_COMMAND  -- transfers -- control to the named procedure, and EXITs your image.&lt;BR /&gt;That means, it is THE LAST statement in your programm that gets executed.&lt;BR /&gt;As far as I understand you so far, that is NOT what you try to achieve!&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Wed, 21 Dec 2005 08:07:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694849#M73493</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-12-21T08:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694850#M73494</link>
      <description>My final executable  has to run in detached mode, so when I am trying to use LIB$SPAWN, it is not able to execute my dcl script inside. But if  I am running 'RUN prog_name' it is executing the required dcl script.&lt;BR /&gt;&lt;BR /&gt;Pls suggest</description>
      <pubDate>Wed, 21 Dec 2005 08:18:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694850#M73494</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2005-12-21T08:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: LIB$SPAWN</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694851#M73495</link>
      <description>Sk,&lt;BR /&gt;&lt;BR /&gt;re-read yesterdays answer by Robert Boyd and myself: RUNning SYS$SYSTEM:LOGINOUT with /INPUT=&lt;COMMANDPROCEDURE that="" runs="" your="" image=""&gt;   will execute in an environment that knows about DCL.&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;/COMMANDPROCEDURE&gt;</description>
      <pubDate>Wed, 21 Dec 2005 08:35:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-spawn/m-p/3694851#M73495</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-12-21T08:35:49Z</dc:date>
    </item>
  </channel>
</rss>

