<?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: Capturing  SYS$OUTPUT remotely in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946237#M73207</link>
    <description>In what You report here I can't see precisely what You really did: is there a space before the ";" ? if not, the ";" is not seen as the pipe delimiter, but as a part of the output filename, and the following are seen as parameters to the define command, therefore the  error message.&lt;BR /&gt;</description>
    <pubDate>Mon, 12 Dec 2005 07:11:14 GMT</pubDate>
    <dc:creator>Joseph Huber_1</dc:creator>
    <dc:date>2005-12-12T07:11:14Z</dc:date>
    <item>
      <title>Capturing  SYS$OUTPUT remotely</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946233#M73203</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;I am trying to capture the SYS$OUTPUT of a remote node using RSH command and then trying to log the output of a exe file as a part of one new DCL program –&lt;BR /&gt;&lt;BR /&gt;$Rsh &lt;REMOTENODE&gt; define/user_mode sys$output temp_file.tmp&lt;BR /&gt;and getting the following error –&lt;BR /&gt;INTERnet ACP AUXS failure Status = %CLI-W-UNDFILcheck logical name&lt;BR /&gt;&lt;BR /&gt;But the command is working fine within the same node. Could you please help on this? If sys$output logical of the remote node cannot be captured remotely by RSH any suggestion how can I capture this by some other means ( using TCPIP will be the first preference).&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Mainak&lt;BR /&gt;&lt;/REMOTENODE&gt;</description>
      <pubDate>Mon, 12 Dec 2005 04:37:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946233#M73203</guid>
      <dc:creator>Mainak</dc:creator>
      <dc:date>2005-12-12T04:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing  SYS$OUTPUT remotely</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946234#M73204</link>
      <description>&lt;BR /&gt;The following works (ignoring that show/output would be better :-) :&lt;BR /&gt;&lt;BR /&gt;rsh node pipe define/user sys$output tmp.log ; show process&lt;BR /&gt;&lt;BR /&gt;For more complicated command-sequences, put the commands preceeded by define/user sys$output into a command file, then execute it:&lt;BR /&gt; rsh node @tmp.com&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Dec 2005 04:59:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946234#M73204</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2005-12-12T04:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing  SYS$OUTPUT remotely</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946235#M73205</link>
      <description>To add a bit explanation to why &lt;BR /&gt; rsh node define/user sys$output somefile&lt;BR /&gt;is returning this error (omitting the discussion about what sense should it make to issue such a command):&lt;BR /&gt;&lt;BR /&gt;rsh on the remote node executes under a command-file  TCPIP$SYSTEM:TCPIP$RSH_RUN.COM,&lt;BR /&gt;which executes the command, and issues as next command a WRITE SYS$OUTPUT "" .&lt;BR /&gt;Now try locally this sequence:&lt;BR /&gt; define/user sys$output somefile&lt;BR /&gt; write sys$output ""&lt;BR /&gt;and get the same error as with rsh:&lt;BR /&gt;%DCL-W-UNDFIL, file has not been opened by DCL - check logical name&lt;BR /&gt;&lt;BR /&gt;It does not work because a define/user sys$output opens the new sys$output only for the next image invocation, but a DCL WRITE is  DCL internal, not an image invocation.&lt;BR /&gt;&lt;BR /&gt;The behaviour for rsh may be different for multinet or tcpware though.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Dec 2005 05:35:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946235#M73205</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2005-12-12T05:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing  SYS$OUTPUT remotely</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946236#M73206</link>
      <description>rsh node pipe define/user sys$output tmp.log ; show process - is giving :&lt;BR /&gt; " %DCL-W-MAXPARM, too many parameters "&lt;BR /&gt;&lt;BR /&gt;rsh node pipe define/user sys$output tmp.log ;dir - is returning the same error -&lt;BR /&gt;&lt;BR /&gt;" %CLI-W-UNDFILcheck logical name "</description>
      <pubDate>Mon, 12 Dec 2005 06:55:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946236#M73206</guid>
      <dc:creator>Mainak</dc:creator>
      <dc:date>2005-12-12T06:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing  SYS$OUTPUT remotely</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946237#M73207</link>
      <description>In what You report here I can't see precisely what You really did: is there a space before the ";" ? if not, the ";" is not seen as the pipe delimiter, but as a part of the output filename, and the following are seen as parameters to the define command, therefore the  error message.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Dec 2005 07:11:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946237#M73207</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2005-12-12T07:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing  SYS$OUTPUT remotely</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946238#M73208</link>
      <description>To summarize:&lt;BR /&gt;&lt;BR /&gt;You can't do a single "define/user sys$output" command remotely (at least it is useless and the resulting error is confusing You).&lt;BR /&gt;&lt;BR /&gt;You have to do at least 1 command following the  define.&lt;BR /&gt;&lt;BR /&gt;This can be done in 2 ways:&lt;BR /&gt;&lt;BR /&gt; Put the command(s) in a (temporary) DCL command-file, then execute the command-file like  "rsh @myscript/output=capture_file"&lt;BR /&gt;&lt;BR /&gt; or&lt;BR /&gt;&lt;BR /&gt;Use the PIPE command to chain the define/user and the command to capture:&lt;BR /&gt; "rsh pipe define/user sys$output capture_file ; command"&lt;BR /&gt;&lt;BR /&gt;Observe the space between capture_file and the ";" following !&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Dec 2005 09:31:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946238#M73208</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2005-12-12T09:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing  SYS$OUTPUT remotely</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946239#M73209</link>
      <description>Please find the small script that I am trying to run remotely using RSH -&lt;BR /&gt;&lt;BR /&gt;TGHU01_SYSTEM&amp;gt; rsh tgdv12 @procr/output=file.tmp&lt;BR /&gt;$&lt;BR /&gt;$ !&lt;BR /&gt;$ ! Force any output to the standard output socket.&lt;BR /&gt;$ !&lt;BR /&gt;$    WRITE SYS$OUTPUT ""&lt;BR /&gt;&lt;BR /&gt;$&lt;BR /&gt;$ EXIT:&lt;BR /&gt;TGHU01_SYSTEM&amp;gt; ty tgdv12::sys$manager:file.tmp&lt;BR /&gt;$ node = f$getsyi("nodename")&lt;BR /&gt;$! define/user_mode sys$output sys$manager:MCS_'node'.tmp&lt;BR /&gt;$! run mc$img:mcstat&lt;BR /&gt;$ pipe define/user sys$output sys$manager:mcs_TGDV12.tmp ; run mc$img:mcstat&lt;BR /&gt;$ open/read/error=oh_dear mcs sys$manager:mcs_TGDV12.tmp&lt;BR /&gt;$oh_dear:&lt;BR /&gt;$ if f$trnlnm("mcs") .nes. "" then $ close mcs&lt;BR /&gt;$ if f$trnlnm("mcs_output") .nes. "" then $ close mcs_output&lt;BR /&gt;$ write sys$output "Error in mcs files"&lt;BR /&gt;Error in mcs files&lt;BR /&gt;$!&lt;BR /&gt;$ EXITError in mcs files&lt;BR /&gt;&lt;BR /&gt;but it is working fine on the local node -&lt;BR /&gt;&lt;BR /&gt;TGDV12_SYSTEM&amp;gt; @procr&lt;BR /&gt;$ node = f$getsyi("nodename")&lt;BR /&gt;$! define/user_mode sys$output sys$manager:MCS_'node'.tmp&lt;BR /&gt;$! run mc$img:mcstat&lt;BR /&gt;$ pipe define/user sys$output sys$manager:mcs_TGDV12.tmp ; run mc$img:mcstat&lt;BR /&gt;$ open/read/error=oh_dear mcs sys$manager:mcs_TGDV12.tmp&lt;BR /&gt;$ read/end_of_file=oh_dear mcs record&lt;BR /&gt;$ read/end_of_file=oh_dear mcs record&lt;BR /&gt;$ read/end_of_file=oh_dear mcs record&lt;BR /&gt;$ read/end_of_file=oh_dear mcs record&lt;BR /&gt;$ read/end_of_file=oh_dear mcs record&lt;BR /&gt;$ mcstat = f$extract(35,8,record)&lt;BR /&gt;$! sh sym mcstat&lt;BR /&gt;$ SNS$STAT == "ISDEVL"&lt;BR /&gt;$ WRITE SYS$OUTPUT MCSTAT&lt;BR /&gt;ISDEVL&lt;BR /&gt;$!&lt;BR /&gt;$! Tidy up the temporary files&lt;BR /&gt;$!&lt;BR /&gt;$ close mcs&lt;BR /&gt;$ delete/NOlog/noconfirm sys$manager:mcs_TGDV12.tmp;*&lt;BR /&gt;$ EXIT</description>
      <pubDate>Mon, 12 Dec 2005 10:31:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946239#M73209</guid>
      <dc:creator>Mainak</dc:creator>
      <dc:date>2005-12-12T10:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing  SYS$OUTPUT remotely</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946240#M73210</link>
      <description>&lt;BR /&gt;Now we are coming nearer to the error, You see the define/user sys$output is not the problem.&lt;BR /&gt;&lt;BR /&gt;Something inhibits the program to write to the file.&lt;BR /&gt; Does it work when running as a batch job (in a queue at the remote node) ? If You see the same problem, then I think something makes the program mc$img:mcstat failing silently when not running interactive.</description>
      <pubDate>Mon, 12 Dec 2005 10:47:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946240#M73210</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2005-12-12T10:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing  SYS$OUTPUT remotely</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946241#M73211</link>
      <description>Thanks Joseph,&lt;BR /&gt;&lt;BR /&gt;It was really helpful.&lt;BR /&gt;&lt;BR /&gt;Mainak</description>
      <pubDate>Wed, 14 Dec 2005 08:56:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/capturing-sys-output-remotely/m-p/4946241#M73211</guid>
      <dc:creator>Mainak</dc:creator>
      <dc:date>2005-12-14T08:56:22Z</dc:date>
    </item>
  </channel>
</rss>

