<?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: Passing process logical to spawned process in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000872#M34748</link>
    <description>I have tried job logicals and the following works:&lt;BR /&gt;&lt;BR /&gt;RUN xxx&lt;BR /&gt;xxx will set job logicals and spawn @yyy&lt;BR /&gt;yyy (in DCL) will read job logicals and set process logicals and RUN zzz&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It works but is a real hack and does not answer  the underlying problem.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I need to use process logicals as that is the table zzz reads from, also I can' change it (program zzz is effectively an exe only).&lt;BR /&gt;I can change program xxx and yyy.</description>
    <pubDate>Fri, 01 Sep 2006 09:41:17 GMT</pubDate>
    <dc:creator>P R Stone_1</dc:creator>
    <dc:date>2006-09-01T09:41:17Z</dc:date>
    <item>
      <title>Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000864#M34740</link>
      <description>I have a system that works when it runs as part of a cgi script through Apache but not when it runs as part of a batch job.&lt;BR /&gt;&lt;BR /&gt;IN APACHE&lt;BR /&gt;&lt;BR /&gt;Cgi-script&lt;BR /&gt;&lt;BR /&gt;RUN xxxx&lt;BR /&gt;    xxx will set process logicals and spawn (using defaults) RUN yyy.&lt;BR /&gt;    yyy will read process logicals and can spawn RUN zzz.&lt;BR /&gt;  zzz will read process logicals and do work.&lt;BR /&gt;&lt;BR /&gt;Runs successfully - all programs can read the process logicals.&lt;BR /&gt;&lt;BR /&gt;   &lt;BR /&gt;IN BATCH&lt;BR /&gt;&lt;BR /&gt;RUN xxx&lt;BR /&gt;    xxx will set process logicals and spawn     (using defaults) RUN yyy.&lt;BR /&gt;    yyy will read process logicals and can spawn RUN zzz. &lt;BR /&gt;  zzz will read process logicals and do work.&lt;BR /&gt;&lt;BR /&gt;SHOW logicals/process displays logicals correctly set by xxx&lt;BR /&gt;&lt;BR /&gt;Neither yyy nor zzz can see the process logicals set by xxx. &lt;BR /&gt;&lt;BR /&gt;All quotas are set high enough that they should not have any effect and are similar for both the Apache and Batch jobs.&lt;BR /&gt;&lt;BR /&gt;As I understand it a spawn should by default copy its process logicals from the parent to the child.&lt;BR /&gt;&lt;BR /&gt;Why are the process logicals not being passed within the batch process?</description>
      <pubDate>Fri, 01 Sep 2006 07:21:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000864#M34740</guid>
      <dc:creator>P R Stone_1</dc:creator>
      <dc:date>2006-09-01T07:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000865#M34741</link>
      <description>P R,&lt;BR /&gt;&lt;BR /&gt;I've tested this with a couple of DCL procedures and it seems to work for me - interactively and in batch.&lt;BR /&gt;&lt;BR /&gt;Please test this on your system.&lt;BR /&gt;&lt;BR /&gt;Proc_1: defines level_0 logical and spawns @proc_2&lt;BR /&gt;&lt;BR /&gt;proc_2: defines level_1 logical and spawns @proc_3&lt;BR /&gt;&lt;BR /&gt;proc_3: show level_0 and level_1 logical&lt;BR /&gt;&lt;BR /&gt;The LIB$SPAWN RTL routine has a flags argument, in which the NOLOGNAM bit could prevent logical names to be passed to the spawned (child) process. Same as /NOLOGNAM qualifier used with the SPAWN DCL command. The default is to pass process logicals to the spawned subprocess.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Fri, 01 Sep 2006 07:56:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000865#M34741</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-09-01T07:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000866#M34742</link>
      <description>A batch job is a process that does a complete new login. It is started by the job controller, not the user's process - the user could have logged out a long time ago or did the SUBMIT on a different cluster member or even done a SUBMIT/REMOTE via DECnet.</description>
      <pubDate>Fri, 01 Sep 2006 07:56:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000866#M34742</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2006-09-01T07:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000867#M34743</link>
      <description>Ah, seeing Volker's response it looks like I have misunderstood your question, sorry.</description>
      <pubDate>Fri, 01 Sep 2006 07:58:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000867#M34743</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2006-09-01T07:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000868#M34744</link>
      <description>I have run the test as Volker suggested and it works for me. This implies that the problem is with program xxx and its spawn RUN yyy.&lt;BR /&gt;&lt;BR /&gt;However it works as part of the cgi-script which suggests that the code is okay but there is a problem with the configuration / environment.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Sep 2006 08:39:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000868#M34744</guid>
      <dc:creator>P R Stone_1</dc:creator>
      <dc:date>2006-09-01T08:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000869#M34745</link>
      <description>If you want to use logical name for more processes, you need to define this as the system logical (rather DEFINE/SYSTEM/EXEC) &lt;BR /&gt;Petr</description>
      <pubDate>Fri, 01 Sep 2006 08:46:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000869#M34745</guid>
      <dc:creator>Petr Spisek</dc:creator>
      <dc:date>2006-09-01T08:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000870#M34746</link>
      <description>Petr,&lt;BR /&gt;&lt;BR /&gt;for a logical to be visible for all processes in a job tree (parent and spawned processes), it's sufficient to use DEFINE/JOB - DEFINE/SYSTEM/EXEC may be a bit of an over-kill.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Fri, 01 Sep 2006 08:59:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000870#M34746</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-09-01T08:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000871#M34747</link>
      <description>:-)&lt;BR /&gt;Thanks for correction, it's true - DEFINE/JOB is realy sufficient. &lt;BR /&gt;Petr</description>
      <pubDate>Fri, 01 Sep 2006 09:05:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000871#M34747</guid>
      <dc:creator>Petr Spisek</dc:creator>
      <dc:date>2006-09-01T09:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000872#M34748</link>
      <description>I have tried job logicals and the following works:&lt;BR /&gt;&lt;BR /&gt;RUN xxx&lt;BR /&gt;xxx will set job logicals and spawn @yyy&lt;BR /&gt;yyy (in DCL) will read job logicals and set process logicals and RUN zzz&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It works but is a real hack and does not answer  the underlying problem.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I need to use process logicals as that is the table zzz reads from, also I can' change it (program zzz is effectively an exe only).&lt;BR /&gt;I can change program xxx and yyy.</description>
      <pubDate>Fri, 01 Sep 2006 09:41:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000872#M34748</guid>
      <dc:creator>P R Stone_1</dc:creator>
      <dc:date>2006-09-01T09:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000873#M34749</link>
      <description>P R,&lt;BR /&gt;&lt;BR /&gt;so XXX, when run in batch mode, will not copy its process logicals to the spawned subprocess, right ?&lt;BR /&gt;&lt;BR /&gt;Do you use the flags argument in the call to LIB$SPAWN - 4th argument ?&lt;BR /&gt;&lt;BR /&gt;This should be the only variable being able to influence this behaviour.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Fri, 01 Sep 2006 09:51:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000873#M34749</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-09-01T09:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000874#M34750</link>
      <description>My spawn commmand is a BASIC function&lt;BR /&gt;&lt;BR /&gt;   status_flag = TRUE&lt;BR /&gt;&lt;BR /&gt;   stat = lib$spawn(p_command)&lt;BR /&gt;   IF stat&amp;lt;&amp;gt;SS$_NORMAL THEN&lt;BR /&gt;      status_flag = FALSE&lt;BR /&gt;   END IF&lt;BR /&gt;   &lt;BR /&gt;   ! Set return value&lt;BR /&gt;   ! ----------------&lt;BR /&gt;   fgi_spawn = status_flag&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have tried lib$spawn(p_command,,,0) but it makes no difference</description>
      <pubDate>Fri, 01 Sep 2006 10:19:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000874#M34750</guid>
      <dc:creator>P R Stone_1</dc:creator>
      <dc:date>2006-09-01T10:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000875#M34751</link>
      <description>P R,&lt;BR /&gt;&lt;BR /&gt;I've tried the following simple BASIC program TEST.BAS:&lt;BR /&gt;&lt;BR /&gt;        call lib$spawn('SHOW LOG/PROC')&lt;BR /&gt;        end&lt;BR /&gt;&lt;BR /&gt;Create a .COM procedure:&lt;BR /&gt;&lt;BR /&gt;$ DEFINE/PROCESS ABC test&lt;BR /&gt;$ RUN test&lt;BR /&gt;&lt;BR /&gt;And run it interactively or in batch. The ABC logical is printed in both cases (tested on OpenVMS Alpha V7.2-1) and I don't expect it to behave any different on any other version of OpenVMS.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Fri, 01 Sep 2006 12:40:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000875#M34751</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-09-01T12:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000876#M34752</link>
      <description>Did you fix up that your batch process terinate after its subprocesses? &lt;BR /&gt;For example: F$GETJPI("","PRCCNT")&lt;BR /&gt;Petr</description>
      <pubDate>Mon, 04 Sep 2006 04:32:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000876#M34752</guid>
      <dc:creator>Petr Spisek</dc:creator>
      <dc:date>2006-09-04T04:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000877#M34753</link>
      <description>Help spawn/logicals.&lt;BR /&gt;&lt;BR /&gt;Exec and kernel mode are not copied. Also the /name=confine logicals are not copied.&lt;BR /&gt;&lt;BR /&gt;Is your login defining them differently according to the mode (I/B/O) ?&lt;BR /&gt;&lt;BR /&gt;In batch, did you check if the logicals are visible by xxx ? I'm thinking of IFs in your login.com.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Mon, 04 Sep 2006 04:49:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000877#M34753</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-09-04T04:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000878#M34754</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;SPAWN command...&lt;BR /&gt;&lt;BR /&gt; By default, all process logical names and logical  name tables are copied to the subprocess except those explicitly marked CONFINE or created in executive or kernel mode.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;BR /&gt;If the Batch jobs is submitted under different user account than the CGI script user and batch jobs doesn't work well as expected , then there must be user level privilege difference.&lt;BR /&gt;&lt;BR /&gt;Note that you must have SYSNAM or SYSPRV privileges to create logical names in executive mode in any logical name table.&lt;BR /&gt;&lt;BR /&gt;When you use the DEFINE command without specifying a mode, DCL creates the logical name in supervisor mode. &lt;BR /&gt;&lt;BR /&gt;----------------------------&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Raj</description>
      <pubDate>Tue, 05 Sep 2006 04:17:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000878#M34754</guid>
      <dc:creator>Chinraj Rajasekaran</dc:creator>
      <dc:date>2006-09-05T04:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000879#M34755</link>
      <description>My batch process was running under a different mode to the apache job. This was the cause of the problem.&lt;BR /&gt;The solution was to pass job logicals into spawned DCL and copy them to process logicals to run the required exe.&lt;BR /&gt;Better solutions can be imagined and will be implemented when time allows.</description>
      <pubDate>Fri, 08 Sep 2006 10:39:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000879#M34755</guid>
      <dc:creator>P R Stone_1</dc:creator>
      <dc:date>2006-09-08T10:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Passing process logical to spawned process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000880#M34756</link>
      <description>See previous comment</description>
      <pubDate>Fri, 08 Sep 2006 10:39:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-process-logical-to-spawned-process/m-p/5000880#M34756</guid>
      <dc:creator>P R Stone_1</dc:creator>
      <dc:date>2006-09-08T10:39:57Z</dc:date>
    </item>
  </channel>
</rss>

