<?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: Odd error logged to OPCOM from SCP. in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223553#M59104</link>
    <description>Joseph Huber takes the prize: adding /authorize indeed fixes the problem.  (I inadvertently truncated theOPCOM error, it should have ended: "Cannot chdir to SYS$LOGIN", so extra kudos for figuring it out without all the facts.)  To everyone who suggested inadequate quotas, I will say that changing quotas was the fix for the first problem I encountered spawning SCP, so it's a good suggestion. &lt;BR /&gt;&lt;BR /&gt;I notice that the command file on production that runs the detached job was written in 1987 for a VAX 8650, and the quotas switches that gave the job extra resources back then, now cut it way back from the account defaults :).  Of course the customer hasn't upgraded to the next version which has only been out since 1993...:(.&lt;BR /&gt;&lt;BR /&gt;Anyway thanks to all, and particularly Joseph&lt;BR /&gt;&lt;BR /&gt;Jonathan&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Feb 2010 14:58:54 GMT</pubDate>
    <dc:creator>Jonathan Cronin</dc:creator>
    <dc:date>2010-02-05T14:58:54Z</dc:date>
    <item>
      <title>Odd error logged to OPCOM from SCP.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223547#M59098</link>
      <description>&lt;!--!*#--&gt;I'm spawning (lib$spawn) an SCP command and getting an odd error logged.&lt;BR /&gt;&lt;BR /&gt;In Basic:&lt;BR /&gt;&lt;BR /&gt;scp_cmd = 'scp "-Q" TEST.F "brady:test.f"'&lt;BR /&gt;sts = lib$spawn(                                                &amp;amp;&lt;BR /&gt;        scp_cmd                 !command!                       &amp;amp;&lt;BR /&gt;        ,                       !input-file!                    &amp;amp;&lt;BR /&gt;        ,                       !output-file!                   &amp;amp;&lt;BR /&gt;        ,                       !flags!                         &amp;amp;&lt;BR /&gt;        ,                       !process-name!                  &amp;amp;&lt;BR /&gt;        ,                       !process-id!                    &amp;amp;&lt;BR /&gt;        ,loc( exit_sts )        !completion-status-address!     &amp;amp;&lt;BR /&gt;        ,                       !byte-integer-event-flag-num!   &amp;amp;&lt;BR /&gt;        ,                       !AST-address!                   &amp;amp;&lt;BR /&gt;        ,                       !varying-AST-argument!          &amp;amp;&lt;BR /&gt;        )&lt;BR /&gt;&lt;BR /&gt;Neither sts nor exit_sts have errors after the call.&lt;BR /&gt;The file is successfully copied.&lt;BR /&gt;&lt;BR /&gt;I'm getting the following logged:&lt;BR /&gt;&lt;BR /&gt;%%%%%%%%%%%  OPCOM   4-FEB-2010 18:54:38.78  %%%%%%%%%%%&lt;BR /&gt;Message from user JON on JOONYA&lt;BR /&gt;OpenVMS$initialize_unix_env error, status: : error 00000002&lt;BR /&gt;                                                           ,Cannot chdir to SYS◆&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(The 0000000002 may be C/Unix EACCES?)&lt;BR /&gt;&lt;BR /&gt;The text string "initialize_unix_env" appears in a bunch of TCPIP SSH .exe files.&lt;BR /&gt;&lt;BR /&gt;The error is only reported if the spawning program is run/detached.&lt;BR /&gt;When the program that executes the spawn is run interactively or in a batch&lt;BR /&gt;no error is logged.&lt;BR /&gt;&lt;BR /&gt;$ run sys$system:loginout -&lt;BR /&gt;        /process_name='process_name' -&lt;BR /&gt;        /detached -&lt;BR /&gt;        /input='input' -&lt;BR /&gt;        /output='logfile' -&lt;BR /&gt;        /nodebug -&lt;BR /&gt;        /error='errfile'&lt;BR /&gt;&lt;BR /&gt;(quota switches omitted)&lt;BR /&gt;&lt;BR /&gt;The input file is the same for a submit or run/detached:&lt;BR /&gt;&lt;BR /&gt;$ run run:SCP_HP_TEST&lt;BR /&gt;&lt;BR /&gt;The problem occurs on both an Alpha and an Itanium.&lt;BR /&gt;&lt;BR /&gt;$ scp "-V"&lt;BR /&gt;tcpip$ssh_scp2.exe: SSH Secure Shell OpenVMS (V5.5) 3.2.0 on AlphaServer ES45&lt;BR /&gt;Model 3B - VMS V8.3&lt;BR /&gt;&lt;BR /&gt;$ scp "-V"&lt;BR /&gt;tcpip$ssh_scp2.exe: SSH Secure Shell OpenVMS (V5.5) 3.2.0 on HP rx2620 &lt;BR /&gt;(1.60GHz/3.0MB) - VMS V8.3&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jonathan&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Feb 2010 00:42:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223547#M59098</guid>
      <dc:creator>Jonathan Cronin</dc:creator>
      <dc:date>2010-02-05T00:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Odd error logged to OPCOM from SCP.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223548#M59099</link>
      <description>Jonathan,&lt;BR /&gt; &lt;BR /&gt;  Detached processes are very different from interactive or batch. My guess is the most likely cause is lack of some or other quota. Your RUN command doesn't specify any quotas, and will therefore get the SYSGEN PQL_D* values, possibly boosted to PQL_M* values. Typically these are just sufficient to get a process running, but rarely enough to do anything useful.&lt;BR /&gt;&lt;BR /&gt;  My general rule is, any detached process started without a fully populated PQL is an EXQUOTA looking for a place to happen. &lt;BR /&gt;&lt;BR /&gt;  Look for a RUN/DETACHED command anywhere in SYS$STARTUP, copy the qualifier list and populate it with reasonable values. You can use RUN/AUTHORIZE as a shortcut to use the quotas from your UAF record, but be aware that it may override other qualifiers (like /PROCESS_NAME)&lt;BR /&gt;&lt;BR /&gt;  If quotas don't help, I'd be looking for some other environmental change, possibly something defined in LOGIN or SYLOGIN (which aren't run for detached processes). Try adding:&lt;BR /&gt;&lt;BR /&gt;$ @SYS$MANAGER:SYLOGIN&lt;BR /&gt;$ @SYS$LOGIN:LOGIN&lt;BR /&gt;&lt;BR /&gt;to your input procedure?</description>
      <pubDate>Fri, 05 Feb 2010 03:04:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223548#M59099</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2010-02-05T03:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Odd error logged to OPCOM from SCP.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223549#M59100</link>
      <description>Jonathan,&lt;BR /&gt;&lt;BR /&gt;  Sorry, I just noticed you said quota qualifiers were omitted. Nevertheless, please make sure they're all present and all adequate.&lt;BR /&gt;&lt;BR /&gt;What does the rest of the fragment "Cannot chdir to SYS" say? &lt;BR /&gt;&lt;BR /&gt;Try replacing your SPAWN command with SHOW LOGICAL and SHOW SYMBOL in interactive and detached modes. See if there are any significant differences.</description>
      <pubDate>Fri, 05 Feb 2010 05:11:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223549#M59100</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2010-02-05T05:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Odd error logged to OPCOM from SCP.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223550#M59101</link>
      <description>For a detached process, if it does not run LOGINOUT, there is no login.com executed, and things like sys$login, sys$disk etc. are not defined.</description>
      <pubDate>Fri, 05 Feb 2010 07:30:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223550#M59101</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2010-02-05T07:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Odd error logged to OPCOM from SCP.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223551#M59102</link>
      <description>hit submit too fast:&lt;BR /&gt;&lt;BR /&gt;even if running loginout, if the /AUTHORIZE is missing from run/detach, then the following logicals are not defined:&lt;BR /&gt;&lt;BR /&gt;$ show logical sys$login&lt;BR /&gt;%SHOW-S-NOTRAN, no translation for logical name SYS$LOGIN&lt;BR /&gt;$ show logical sys$login_device&lt;BR /&gt;%SHOW-S-NOTRAN, no translation for logical name SYS$LOGIN_DEVICE&lt;BR /&gt;$ show logical sys$scratch&lt;BR /&gt;%SHOW-S-NOTRAN, no translation for logical name SYS$SCRATCH&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Feb 2010 07:54:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223551#M59102</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2010-02-05T07:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Odd error logged to OPCOM from SCP.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223552#M59103</link>
      <description>A program that is RUN/DETACHED does not have DCL around and LIB$SPAWN depends upon DCL to copy symbols and logicals between the processes.</description>
      <pubDate>Fri, 05 Feb 2010 14:16:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223552#M59103</guid>
      <dc:creator>Richard Whalen</dc:creator>
      <dc:date>2010-02-05T14:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Odd error logged to OPCOM from SCP.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223553#M59104</link>
      <description>Joseph Huber takes the prize: adding /authorize indeed fixes the problem.  (I inadvertently truncated theOPCOM error, it should have ended: "Cannot chdir to SYS$LOGIN", so extra kudos for figuring it out without all the facts.)  To everyone who suggested inadequate quotas, I will say that changing quotas was the fix for the first problem I encountered spawning SCP, so it's a good suggestion. &lt;BR /&gt;&lt;BR /&gt;I notice that the command file on production that runs the detached job was written in 1987 for a VAX 8650, and the quotas switches that gave the job extra resources back then, now cut it way back from the account defaults :).  Of course the customer hasn't upgraded to the next version which has only been out since 1993...:(.&lt;BR /&gt;&lt;BR /&gt;Anyway thanks to all, and particularly Joseph&lt;BR /&gt;&lt;BR /&gt;Jonathan&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Feb 2010 14:58:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223553#M59104</guid>
      <dc:creator>Jonathan Cronin</dc:creator>
      <dc:date>2010-02-05T14:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Odd error logged to OPCOM from SCP.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223554#M59105</link>
      <description>Add /authorize to run/detached command so that sys$login is defined.</description>
      <pubDate>Fri, 05 Feb 2010 15:38:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223554#M59105</guid>
      <dc:creator>Jonathan Cronin</dc:creator>
      <dc:date>2010-02-05T15:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Odd error logged to OPCOM from SCP.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223555#M59106</link>
      <description>Jonathan,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;Joseph Huber takes the prize&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;... but he did not get it yet!!&lt;BR /&gt;&lt;BR /&gt;Only YOU ( "Question Author" ) can do that:&lt;BR /&gt;&lt;BR /&gt;reopen the thread&lt;BR /&gt;in each answer's title bar pull down the Points Menu&lt;BR /&gt;vauate each answer&lt;BR /&gt;&lt;BR /&gt;and finally hit "Submit Points".&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>Fri, 05 Feb 2010 16:17:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223555#M59106</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2010-02-05T16:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Odd error logged to OPCOM from SCP.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223556#M59107</link>
      <description>My view of the web page shows he did get 10 points.  On the&lt;BR /&gt;other hand my partial points given to others did not show up.  I tried reopening and setting them again got the same result.&lt;BR /&gt;&lt;BR /&gt;Jonathan</description>
      <pubDate>Fri, 05 Feb 2010 17:51:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/odd-error-logged-to-opcom-from-scp/m-p/5223556#M59107</guid>
      <dc:creator>Jonathan Cronin</dc:creator>
      <dc:date>2010-02-05T17:51:46Z</dc:date>
    </item>
  </channel>
</rss>

