<?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: Redirecting output from sftp in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-output-from-sftp/m-p/5264500#M27631</link>
    <description>Hello Jorg,&lt;BR /&gt;&lt;BR /&gt;2 years since our initial discussion!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1257512" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1257512&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;When I answered that thread, I was using TCPIP V5.4 on Alpha VMS 7.3-2, but I no longer have those systems to hand.&lt;BR /&gt;&lt;BR /&gt;I can confirm that the same problem exists with TCPIP Service 5.7 ECO1 on IA64 V8.3-1H1.&lt;BR /&gt;&lt;BR /&gt;Whilst I cannot track down the exact sequence of events, I have found that the&lt;BR /&gt;"ls *.xxx"&lt;BR /&gt;hang is, in fact, a looping subprocess on the local side. It appears to be issuing massive amounts of i/o against nla0:.&lt;BR /&gt;&lt;BR /&gt;I have also observed that a plain "ls" works perfectly well.&lt;BR /&gt;&lt;BR /&gt;So, perhaps you could utilise this and change your command to:&lt;BR /&gt;&lt;BR /&gt; pipe (def/user sys$command nl: ; sftp "-B" x.cmd user@host ) | -&lt;BR /&gt;        sea sys$pipe ".txt"/out=ls.out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;</description>
    <pubDate>Fri, 26 Nov 2010 16:35:19 GMT</pubDate>
    <dc:creator>Duncan Morris</dc:creator>
    <dc:date>2010-11-26T16:35:19Z</dc:date>
    <item>
      <title>Redirecting output from sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-output-from-sftp/m-p/5264499#M27630</link>
      <description>Hello everybody&lt;BR /&gt;&lt;BR /&gt;I seem to have a problem similar to others already having posted here. I want to redirect the output of a SFTP command unter OpenVMS (SSH Secure Shell OpenVMS (V5.5) 3.2.0 on AlphServer ES40 - VMS 8.3).&lt;BR /&gt;For that I use:&lt;BR /&gt;&amp;gt; pipe (define/user sys$command nl: ; -&lt;BR /&gt;sftp "-B" x.cmd user@host) |copy sys$pipe: ls.out&lt;BR /&gt;&lt;BR /&gt;where x.cmd is:&lt;BR /&gt;ls *.txt&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;But the command never returns. When I do the commands interactively, the sftp ... alone works well, but when I call define /user sys$command nl: before, once again the sftp-command does not terminate.&lt;BR /&gt;&lt;BR /&gt;Anybody got an idea where the problem might be?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot in advance&lt;BR /&gt;&lt;BR /&gt;Jörg Mohren</description>
      <pubDate>Fri, 26 Nov 2010 13:24:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-output-from-sftp/m-p/5264499#M27630</guid>
      <dc:creator>Jörg Mohren</dc:creator>
      <dc:date>2010-11-26T13:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting output from sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-output-from-sftp/m-p/5264500#M27631</link>
      <description>Hello Jorg,&lt;BR /&gt;&lt;BR /&gt;2 years since our initial discussion!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1257512" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1257512&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;When I answered that thread, I was using TCPIP V5.4 on Alpha VMS 7.3-2, but I no longer have those systems to hand.&lt;BR /&gt;&lt;BR /&gt;I can confirm that the same problem exists with TCPIP Service 5.7 ECO1 on IA64 V8.3-1H1.&lt;BR /&gt;&lt;BR /&gt;Whilst I cannot track down the exact sequence of events, I have found that the&lt;BR /&gt;"ls *.xxx"&lt;BR /&gt;hang is, in fact, a looping subprocess on the local side. It appears to be issuing massive amounts of i/o against nla0:.&lt;BR /&gt;&lt;BR /&gt;I have also observed that a plain "ls" works perfectly well.&lt;BR /&gt;&lt;BR /&gt;So, perhaps you could utilise this and change your command to:&lt;BR /&gt;&lt;BR /&gt; pipe (def/user sys$command nl: ; sftp "-B" x.cmd user@host ) | -&lt;BR /&gt;        sea sys$pipe ".txt"/out=ls.out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Nov 2010 16:35:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-output-from-sftp/m-p/5264500#M27631</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2010-11-26T16:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting output from sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-output-from-sftp/m-p/5264501#M27632</link>
      <description>JÃ¶rg,&lt;BR /&gt;&lt;BR /&gt;What about:&lt;BR /&gt;&lt;BR /&gt;$ pipe (define/user sys$command nl: ; -&lt;BR /&gt;sftp "-B" x.cmd user@host) &amp;gt; ls.out&lt;BR /&gt;&lt;BR /&gt;or possibly:&lt;BR /&gt;&lt;BR /&gt;$ DEFINE/USER SYS$COMMAND NL:&lt;BR /&gt;$ PIPE sftp "-B" x.cmd user@host &amp;gt; ls.out&lt;BR /&gt;&lt;BR /&gt;Another redirection trick that might work&lt;BR /&gt;&lt;BR /&gt;$ IF p1.EQS."REDIRECT" &lt;BR /&gt;$ THEN&lt;BR /&gt;$   'p2'&lt;BR /&gt;$   'p3'&lt;BR /&gt;$   'p4'&lt;BR /&gt;$   'p5'&lt;BR /&gt;$   'p6'&lt;BR /&gt;$   'p7'&lt;BR /&gt;$   'p8'&lt;BR /&gt;$   EXIT&lt;BR /&gt;$ ENDIF&lt;BR /&gt;$ WRITE SYS$OUTPUT "Starting"&lt;BR /&gt;$ self=F$PARSE(";",F$ENVIRONMENT("PROCEDURE"))&lt;BR /&gt;$ @'self'/OUT=REDIR.OUT REDIRECT "DEFINE/USER SYS$COMMAND NL:" "sftp ""-B"" x.cmd user@host"&lt;BR /&gt;$ WRITE SYS$OUTPUT "Ending"&lt;BR /&gt;$ EXIT&lt;BR /&gt;&lt;BR /&gt;(sorry, I don't have any nodes running sftp that I can test on)</description>
      <pubDate>Fri, 26 Nov 2010 20:31:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-output-from-sftp/m-p/5264501#M27632</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2010-11-26T20:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting output from sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-output-from-sftp/m-p/5264502#M27633</link>
      <description>And for that matter, why not&lt;BR /&gt;&lt;BR /&gt;$ DEFINE/USER SYS$COMMAND NL:&lt;BR /&gt;$ DEFINE/USER SYS$OUTPUT ls.out&lt;BR /&gt;$ sftp "-B" x.cmd user@host&lt;BR /&gt;&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Nov 2010 22:03:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-output-from-sftp/m-p/5264502#M27633</guid>
      <dc:creator>RBrown_1</dc:creator>
      <dc:date>2010-11-26T22:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting output from sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-output-from-sftp/m-p/5264503#M27634</link>
      <description>Hello &lt;BR /&gt;&lt;BR /&gt;The solution of RBrown worked out well while the others did not terminate.&lt;BR /&gt;Thank you for your help.&lt;BR /&gt;&lt;BR /&gt;JÃ¶rg</description>
      <pubDate>Mon, 29 Nov 2010 11:26:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-output-from-sftp/m-p/5264503#M27634</guid>
      <dc:creator>Jörg Mohren</dc:creator>
      <dc:date>2010-11-29T11:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting output from sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-output-from-sftp/m-p/5264504#M27635</link>
      <description>Closed until my next problem appears ...</description>
      <pubDate>Mon, 29 Nov 2010 11:30:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-output-from-sftp/m-p/5264504#M27635</guid>
      <dc:creator>Jörg Mohren</dc:creator>
      <dc:date>2010-11-29T11:30:15Z</dc:date>
    </item>
  </channel>
</rss>

