<?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: run sys$system:loginout and output in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587249#M39550</link>
    <description>John,&lt;BR /&gt;&lt;BR /&gt;My remark was based upon Hoff's remark that /deta could be meant.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
    <pubDate>Thu, 25 Feb 2010 13:24:51 GMT</pubDate>
    <dc:creator>Wim Van den Wyngaert</dc:creator>
    <dc:date>2010-02-25T13:24:51Z</dc:date>
    <item>
      <title>run sys$system:loginout and output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587239#M39540</link>
      <description>I want to run a dcl script using&lt;BR /&gt;$ run/output=file.out/input=run.com sys$system:loginout&lt;BR /&gt;(and some additionnal qualifier to modify quota&lt;BR /&gt; or use the mailbox).&lt;BR /&gt;Unfortunately, on the output I get both the&lt;BR /&gt;lines of my script and the output of the commands.  It is possible to have the commands output in a separate file ?  What did I miss ?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 19 Feb 2010 16:36:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587239#M39540</guid>
      <dc:creator>Tristan Gingold</dc:creator>
      <dc:date>2010-02-19T16:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: run sys$system:loginout and output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587240#M39541</link>
      <description>Perhaps verify is on so start your script with&lt;BR /&gt;$ SET NOVERIFY&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;$'F$VERIFY(0)</description>
      <pubDate>Fri, 19 Feb 2010 16:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587240#M39541</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2010-02-19T16:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: run sys$system:loginout and output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587241#M39542</link>
      <description>That particular RUN command is typically a fairly arcane variation of the SPAWN command.&lt;BR /&gt;&lt;BR /&gt;Did you intend to include /DETACH or mayhap /UIC=[uic.value] on that RUN command, and invoke the DCL command procedure as a separate process? Otherwise, a SPAWN command would be rather more typical usage.&lt;BR /&gt;&lt;BR /&gt;And if you want to suppress verification in a DCL command procedure, that's usually one of the following:&lt;BR /&gt;&lt;BR /&gt;$ SET NOVERIFY&lt;BR /&gt;$ vfy = f$verify(0)&lt;BR /&gt;$ vfy = F$Verify(F$TrnLnm("GINGOLD_DEBUG"))&lt;BR /&gt;&lt;BR /&gt;Also remember the ON or SET NOON command at the top of the procedure, too; since you're calling this a "script", I'll presume some local familiarity with Unix, and DCL procedures and error handling will work slightly differently here than that of bash shell scripts.&lt;BR /&gt;&lt;BR /&gt;If that's not it, please post up the OpenVMS platform and version information, whether you're current on patches, and a reproducer and/or an example log. &lt;BR /&gt;</description>
      <pubDate>Fri, 19 Feb 2010 20:40:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587241#M39542</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2010-02-19T20:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: run sys$system:loginout and output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587242#M39543</link>
      <description>Thank you to both Ian and Hoff.&lt;BR /&gt;&lt;BR /&gt;I have to use RUN because I want to control&lt;BR /&gt;quota and use mailbox notification.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Feb 2010 08:04:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587242#M39543</guid>
      <dc:creator>Tristan Gingold</dc:creator>
      <dc:date>2010-02-22T08:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: run sys$system:loginout and output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587243#M39544</link>
      <description>Note that sys$scratch and sys$login are missing in detached mode. But you can define them yourself when needed.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 23 Feb 2010 21:42:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587243#M39544</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2010-02-23T21:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: run sys$system:loginout and output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587244#M39545</link>
      <description>Wim,&lt;BR /&gt;&lt;BR /&gt;  Note that this process is NOT detached. It's using the RUN command *without* /DETACHED or /UIC. As Hoff pointed out, that means it creates a subprocess.&lt;BR /&gt;&lt;BR /&gt;  SYS$SCRATCH and SYS$LOGIN are defined, and the job table is shared with the creator process. However, unlike SPAWN, neither process logical names nor symbols are copied. Also unlike SPAWN, the default for this type of process is verification enabled.&lt;BR /&gt;&lt;BR /&gt;  Odd usage, but as Tristan has pointed out, RUNH/MAILBOX is the only simple way from DCL to get a process termination message.&lt;BR /&gt;&lt;BR /&gt;Tristan,&lt;BR /&gt;  I'll some other options to Hoff's suggestions for turning verification off:&lt;BR /&gt;&lt;BR /&gt;$ v='F$VERIFY(0)'&lt;BR /&gt;$ v= 'F$VERIFY(F$TRNLNM(F$PARSE(F$ENVIRONMENT("PROCEDURE"),,,"NAME")+"_VERIFY")'&lt;BR /&gt;&lt;BR /&gt;  Each of Hoff's options will be verified to SYS$OUTPUT. If that matters, put single quotes around F$VERIFY(0) so it's executed before the verification phase of DCL parsing.&lt;BR /&gt;The longer version allows you to define a logical name &lt;PROCEDURENAME&gt;_VERIFY to enable verification, for example, in the JOB table. If the logical name is not defined, verification will be disabled.&lt;BR /&gt;&lt;BR /&gt; In a more general, modular context, the procedure should end with something like:&lt;BR /&gt;&lt;BR /&gt;$ EXIT F$INTEGER(stat)+(F$VERIFY(v).AND.0)&lt;BR /&gt;&lt;BR /&gt;(where symbol stat contains the final status you want to return to the caller). This will restore verification to its previous state.&lt;BR /&gt;&lt;BR /&gt;&lt;/PROCEDURENAME&gt;</description>
      <pubDate>Tue, 23 Feb 2010 23:57:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587244#M39545</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2010-02-23T23:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: run sys$system:loginout and output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587245#M39546</link>
      <description>Thanks John for the trick.&lt;BR /&gt;&lt;BR /&gt;I have a slightly related question: the first&lt;BR /&gt;lines of a batch output is:&lt;BR /&gt;&lt;BR /&gt;$ Set NoOn&lt;BR /&gt;$ VERIFY = F$VERIFY(F$TRNLNM("SYLOGIN_VERIFY"))&lt;BR /&gt;&lt;BR /&gt;However, this lines are not in my batch command&lt;BR /&gt;nor in my login.com.  Are they internal&lt;BR /&gt;commands from dcl or are they defined in some&lt;BR /&gt;logicals ?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 24 Feb 2010 08:35:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587245#M39546</guid>
      <dc:creator>Tristan Gingold</dc:creator>
      <dc:date>2010-02-24T08:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: run sys$system:loginout and output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587246#M39547</link>
      <description>$ Set NoOn&lt;BR /&gt;$ VERIFY = F$VERIFY(F$TRNLNM("SYLOGIN_VERIFY"))&lt;BR /&gt;&lt;BR /&gt;Most likely in sylogin.com or the system wide login.com</description>
      <pubDate>Wed, 24 Feb 2010 09:46:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587246#M39547</guid>
      <dc:creator>Thomas Ritter</dc:creator>
      <dc:date>2010-02-24T09:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: run sys$system:loginout and output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587247#M39548</link>
      <description>If you don't know where a particular string of text might be within your local environment, well, SEARCH for it.&lt;BR /&gt;&lt;BR /&gt;From the string, it can be inferred that this particular DCL command is probably located within the system-wide SYLOGIN command procedure, and SYLOGIN is commonly invoked as part of a login sequence.  &lt;BR /&gt;&lt;BR /&gt;That written, I've seen this DCL cut-and-pasted elsewhere, too.  Again, SEARCH is your friend.</description>
      <pubDate>Wed, 24 Feb 2010 11:12:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587247#M39548</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2010-02-24T11:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: run sys$system:loginout and output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587248#M39549</link>
      <description>&amp;gt;$ Set NoOn&lt;BR /&gt;&amp;gt;$ VERIFY = F$VERIFY(F$TRNLNM("SYLOGIN_VERIFY"))&lt;BR /&gt;&lt;BR /&gt;These are the "normal" first two lines in SYLOGIN.COM (see SYS$STARTUP:SYLOGIN.TEMPLATE).&lt;BR /&gt;&lt;BR /&gt;The "$ SET NoOn" in batch, network and RUN subprocesses because verification is on by default. The F$VERIFY line appears because it doesn't include the leading single quote to turn verification off before the line is verified.&lt;BR /&gt;&lt;BR /&gt;If it were me, I'd have written it as:&lt;BR /&gt;&lt;BR /&gt;$ VERIFY = 'F$VERIFY(F$TRNLNM("SYLOGIN_VERIFY"))'&lt;BR /&gt;$ Set NoOn&lt;BR /&gt;&lt;BR /&gt;because I don't like superfluous text from login procedures in batch log files. That way around the procedure is silent unless the logical name SYLOGIN_VERIFY is defined as TRUE.&lt;BR /&gt;&lt;BR /&gt;Remember the template is just a suggestion. You're free to change your SYLOGIN.COM to whatever you please.&lt;BR /&gt;&lt;BR /&gt;FWIW, our site has exactly the above modification in all our SYLOGIN.COM procedures.</description>
      <pubDate>Wed, 24 Feb 2010 21:10:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587248#M39549</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2010-02-24T21:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: run sys$system:loginout and output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587249#M39550</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;My remark was based upon Hoff's remark that /deta could be meant.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Thu, 25 Feb 2010 13:24:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587249#M39550</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2010-02-25T13:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: run sys$system:loginout and output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587250#M39551</link>
      <description>Thanks to everyone.</description>
      <pubDate>Thu, 25 Feb 2010 13:57:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/run-sys-system-loginout-and-output/m-p/4587250#M39551</guid>
      <dc:creator>Tristan Gingold</dc:creator>
      <dc:date>2010-02-25T13:57:12Z</dc:date>
    </item>
  </channel>
</rss>

