<?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: spawned processes in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147121#M92632</link>
    <description>&lt;!--!*#--&gt;For the record:&lt;BR /&gt;&lt;BR /&gt;alp $ exit 1409916&lt;BR /&gt;%LIB-F-NOCLI, no CLI present to perform function&lt;BR /&gt;&lt;BR /&gt;Some potentially useful info is emitted by:&lt;BR /&gt;&lt;BR /&gt;      help /mess /faci = lib NOCLI</description>
    <pubDate>Fri, 19 Dec 2008 00:33:03 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2008-12-19T00:33:03Z</dc:date>
    <item>
      <title>spawned processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147116#M92627</link>
      <description>&lt;BR /&gt;I have a program that's started using "run /detach".  In it I call conv$convert and lib$spawn.  It's worked fine under version 7.1, but under 7.2-2 and 7.3-2 neither the conv$convert nor the lib$spawn work properly.  The lib$spawn returns a status of 1409916.&lt;BR /&gt;&lt;BR /&gt;If I run the program from DCL, both the conv$convert and lib$spawn work.&lt;BR /&gt;&lt;BR /&gt;Looks like an issue with spawned processes and/or sub-processes, but I can't figure out what might have changed.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Dec 2008 20:44:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147116#M92627</guid>
      <dc:creator>Gregg Parmentier</dc:creator>
      <dc:date>2008-12-18T20:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: spawned processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147117#M92628</link>
      <description>Right... LIB$SPAWN requires help from DCL.&lt;BR /&gt;&lt;BR /&gt;To get DCL in a detached process you first run LOGINOUT, NOT your image, and then make that do whatever you need to do.&lt;BR /&gt;&lt;BR /&gt;I'm sure GOOGLE and OpenVMS FAQs have further details on that.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Dec 2008 21:14:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147117#M92628</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-12-18T21:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: spawned processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147118#M92629</link>
      <description>&lt;BR /&gt;So, run/detach LOGINOUT with the procedure as the input, rather than the image directly.&lt;BR /&gt;&lt;BR /&gt;I'll give it a shot.&lt;BR /&gt;&lt;BR /&gt;Strange that it works as is with 7.1.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Dec 2008 22:06:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147118#M92629</guid>
      <dc:creator>Gregg Parmentier</dc:creator>
      <dc:date>2008-12-18T22:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: spawned processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147119#M92630</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Hmm, you indeed already mentioned that it worked under 7.1. &lt;BR /&gt;I had sort of thought/hoped that remark applied to CONV$CONVERT.&lt;BR /&gt;I seem to remember that the LIB$SPAWN restriction was 'day-1'. Maybe not.&lt;BR /&gt;&lt;BR /&gt;It is exactly documented.. online down to 7.3:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/73final/5932/5932pro_042.html#spawn" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/5932/5932pro_042.html#spawn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;"This routine is supported for use only with the DCL command language interpreter. If used when the current CLI is MCR, the error status LIB$_NOCLI is returned. "&lt;BR /&gt;&lt;BR /&gt;For CONV$CONVERT there have been some changes, with respect to temp file handling. Whether a directory entry is mode or not. I did not have the time/desire to find that back. You may want to check CONVWORK and SYS$SCRATCH settings, notably if it is called for an indexed file verus just to copy an simple file.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Dec 2008 22:24:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147119#M92630</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-12-18T22:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: spawned processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147120#M92631</link>
      <description>&lt;!--!*#--&gt;LIB$SPAWN calls have never, ever, worked from an image that was run directly using a "RUN /DETACHED image..." command.</description>
      <pubDate>Fri, 19 Dec 2008 00:19:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147120#M92631</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2008-12-19T00:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: spawned processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147121#M92632</link>
      <description>&lt;!--!*#--&gt;For the record:&lt;BR /&gt;&lt;BR /&gt;alp $ exit 1409916&lt;BR /&gt;%LIB-F-NOCLI, no CLI present to perform function&lt;BR /&gt;&lt;BR /&gt;Some potentially useful info is emitted by:&lt;BR /&gt;&lt;BR /&gt;      help /mess /faci = lib NOCLI</description>
      <pubDate>Fri, 19 Dec 2008 00:33:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147121#M92632</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-12-19T00:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: spawned processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147122#M92633</link>
      <description>&lt;BR /&gt;I got the damned thing working.&lt;BR /&gt;&lt;BR /&gt;For those interested, I'll go through the whole process.&lt;BR /&gt;&lt;BR /&gt;The original program was run detached and used conv$convert for the file copy (it also runs lib$spawn for other things and I'll need to see if those parts ever worked correctly.)  This worked with 7.1.  Under 7.3-2 conv$convert was creating the new file, but not copying the contents.&lt;BR /&gt;&lt;BR /&gt;I created a free-standing program to just call conv$convert do the copy, and it worked when run from dcl.  I changed the code in the original program to use lib$spawn to run this new free-standing program.  This also worked from dcl, but not run detached, but this time I didn't even get the file create.  This was the same whether I ran the free-standing program directly with lib$spawn or if I ran a script that ran the program.&lt;BR /&gt;&lt;BR /&gt;This is where I asked my question here.&lt;BR /&gt;&lt;BR /&gt;I changed the start script to use loginout.  Now the version that used lib$spawn to run the free-standing program worked identically to the original version that called conv$convert directly: file created, but no data copy.&lt;BR /&gt;&lt;BR /&gt;What finally worked was using lib$spawn in the program to run a script to use loginout to run the free-standing copy program.&lt;BR /&gt;&lt;BR /&gt;Whew!&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Dec 2008 17:36:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147122#M92633</guid>
      <dc:creator>Gregg Parmentier</dc:creator>
      <dc:date>2008-12-19T17:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: spawned processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147123#M92634</link>
      <description>I'm glad you got it working, but I hope you are not offended if I call your baby ugly.&lt;BR /&gt;Very ugly.&lt;BR /&gt;&lt;BR /&gt;CONV$CONVERT can and will work from a detacht process. Directly. We just have to figure out where it went wrong.&lt;BR /&gt;&lt;BR /&gt;File access AUDITING is probably the most expedient way to do this.&lt;BR /&gt;This is bound to be a logical name and/or protection environmental issue. I'm sure the code was fine.&lt;BR /&gt;&lt;BR /&gt;Please consider poking a little more at this problem.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.</description>
      <pubDate>Fri, 19 Dec 2008 18:13:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147123#M92634</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-12-19T18:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: spawned processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147124#M92635</link>
      <description>&lt;BR /&gt;I wouldn't have posted that "solution" here if I hadn't thought it was ugly, myself.&lt;BR /&gt;&lt;BR /&gt;I plan to look at it some more, but even running it with a fully privileged system account I get the same effect.&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Dec 2008 19:33:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147124#M92635</guid>
      <dc:creator>Gregg Parmentier</dc:creator>
      <dc:date>2008-12-19T19:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: spawned processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147125#M92636</link>
      <description>&amp;gt;I plan to look at it some more, but even &lt;BR /&gt;&amp;gt;running it with a fully privileged system &lt;BR /&gt;&amp;gt;account I get the same effect.&lt;BR /&gt;&lt;BR /&gt;  Beware! SORT, and by it's use of SORT, CONVERT have a curious property where they can sometimes fail from a privileged process with a NOPRIV error, where a non-privileged repeat of the same command will succeed.&lt;BR /&gt;&lt;BR /&gt;  This may have been fixed recently, but I'm fairly sure it was still there in V7.3-*.&lt;BR /&gt;&lt;BR /&gt;  The SORTWORK files are created with a peculiar protection mask (S,O:RWED,G,W). If SORTWORK files are created in a directory not owned by the current process, the file creation rules mean a SYSPRV process will create the file owned by the owner of the directory. When it comes to deleting the file, the SYSPRV process accesses the file via the SYSTEM protection mask, which denies DELETE access. This makes SORT fail with a NOPRIV error. In contrast, if the non-privileged process has write access to the directory, the owner of the file will be the current process, which accesses the file via the OWNER mask, and therefore succeeds.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 21 Dec 2008 22:19:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147125#M92636</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-12-21T22:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: spawned processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147126#M92637</link>
      <description>&lt;BR /&gt;I checked the account used to run the job, and it had its privs jacked up.&lt;BR /&gt;&lt;BR /&gt;All I had to do was define sys$scratch to point to a directory owned by that account (not sure why it wasn't already pointing there.)&lt;BR /&gt;&lt;BR /&gt;So apparently the sortmerge problem with privileged accounts appeared some time after VMS 7.1 and before or at 7.2-2.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Dec 2008 15:04:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147126#M92637</guid>
      <dc:creator>Gregg Parmentier</dc:creator>
      <dc:date>2008-12-22T15:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: spawned processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147127#M92638</link>
      <description>&amp;gt;&amp;gt; All I had to do was define sys$scratch to point to a directory owned by that account (&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Just like I suggested in my second, ( 0 points = please do not bother next time :-) reply.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;and best wishes for the New Year,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Dec 2008 18:04:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/spawned-processes/m-p/5147127#M92638</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-12-24T18:04:36Z</dc:date>
    </item>
  </channel>
</rss>

