<?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: Directing SFTP output to a file in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378906#M16333</link>
    <description>&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;What do we need to do to upgrade?&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;Download&lt;BR /&gt;&lt;BR /&gt;&lt;A href="ftp://ftp.itrc.hp.com/openvms_patches/alpha/V7.3-2/DEC-AXPVMS-TCPIP-V0504-15ECO7-1.PCSI-DCX_AXPEXE" target="_blank"&gt;ftp://ftp.itrc.hp.com/openvms_patches/alpha/V7.3-2/DEC-AXPVMS-TCPIP-V0504-15ECO7-1.PCSI-DCX_AXPEXE&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;to the machine, RUN the file, and then PRODUCT INSTALL the resulting PCSI kit.&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;Martin</description>
    <pubDate>Sat, 14 Mar 2009 03:00:21 GMT</pubDate>
    <dc:creator>Martin Vorlaender</dc:creator>
    <dc:date>2009-03-14T03:00:21Z</dc:date>
    <item>
      <title>Directing SFTP output to a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378898#M16325</link>
      <description>I'm having the same problem discussed in this thread&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1185836" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1185836&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt; I need to capture the output from the SFTP ls command to a file so I can search it.&lt;BR /&gt;&lt;BR /&gt;When I do things the normal way:&lt;BR /&gt;$assign sys$output sftp.out&lt;BR /&gt;$sftp "-b" commands.dat user@node&lt;BR /&gt;$deassign sys$output&lt;BR /&gt;I get "Warning: Need basic cursor movement capablity, using vt100", and the output goes to the screen.&lt;BR /&gt;&lt;BR /&gt;As soon as I use DEFINE/USER SYS$COMMAND NL:, either in the pipe command or issued separately before the sftp command, I get "FATAL: OpenVMS$tty_gettty() failed&lt;BR /&gt;%TCPIP-F-SSH_FATAL, non-specific fatal error condition"&lt;BR /&gt;&lt;BR /&gt;Any idea why I'm getting the error, or any other way to redirect the output to a file?&lt;BR /&gt;&lt;BR /&gt;Using '-o "batchmode yes"' gives me an illegal option error:&lt;BR /&gt;illegal option -- o&lt;BR /&gt;Usage: sftp2 [-D debug_level_spec] [-b batchfile] [-S path] [-h] [-V] [-P ssh2-port] host</description>
      <pubDate>Fri, 13 Mar 2009 15:13:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378898#M16325</guid>
      <dc:creator>Dan Letobar</dc:creator>
      <dc:date>2009-03-13T15:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Directing SFTP output to a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378899#M16326</link>
      <description>&lt;!--!*#--&gt;Dan,&lt;BR /&gt;&lt;BR /&gt;welcome to the ITRC OpenVMS forum!&lt;BR /&gt;&lt;BR /&gt;Here is a code snippet from a working script on Alpha 7.3-2, TCPIP 5.4 ECO 7&lt;BR /&gt;&lt;BR /&gt;$&lt;BR /&gt;$ !---- Using 'pipe' produces a decent log file for us.&lt;BR /&gt;$ pipe (define/user sys$command NL: ; -&lt;BR /&gt;        sftp "-B" "/xxxx_de/workfiles/''sftp_cmdfile'" 'xxxxde_username'@'xxxxde_ip' ; -&lt;BR /&gt;        define/job/nolog sftp_stat &amp;amp;$status) | copy sys$pipe: 'sftp_logfile'&lt;BR /&gt;$ sftp_status = f$trnlnm("sftp_stat")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 13 Mar 2009 16:52:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378899#M16326</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2009-03-13T16:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Directing SFTP output to a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378900#M16327</link>
      <description>Thanks for the help and the welcome!&lt;BR /&gt;&lt;BR /&gt;The pipe command you have above is exactly what I tried.  When I type the 'sftp_logfile' I get:&lt;BR /&gt;&lt;BR /&gt;$ type sftp.out&lt;BR /&gt;FATAL: OpenVMS$tty_gettty() failed&lt;BR /&gt;%TCPIP-F-SSH_FATAL, non-specific fatal error condition&lt;BR /&gt;%NONAME-F-NOMSG, Message number 0764CFBC&lt;BR /&gt;&lt;BR /&gt;One thing I notice is; it appears I have a different version of SFTP.  Mine requires "-b" instead of "-B" and doesn't have a -o option.  Not sure if that has anything to do with anything.&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 13 Mar 2009 17:11:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378900#M16327</guid>
      <dc:creator>Dan Letobar</dc:creator>
      <dc:date>2009-03-13T17:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Directing SFTP output to a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378901#M16328</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Using '-o "batchmode yes"' gives me an&lt;BR /&gt;&amp;gt; illegal option error:&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;Sometimes it's helpful to show the actual&lt;BR /&gt;command(s) used.  Around here, no complaint:&lt;BR /&gt;&lt;BR /&gt;alp $ sftp -o "batchmode yes"&lt;BR /&gt;sftp&amp;gt; quit&lt;BR /&gt;&lt;BR /&gt;Disclosing some relevant software versions&lt;BR /&gt;might not hurt, either.&lt;BR /&gt;&lt;BR /&gt;alp $ tcpip show version&lt;BR /&gt;&lt;BR /&gt;  HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 7&lt;BR /&gt;  on a COMPAQ Professional Workstation XP1000 running OpenVMS V7.3-2  &lt;BR /&gt;&lt;BR /&gt;alp $ sftp "-V"&lt;BR /&gt;alp$dka0:[sys0.syscommon.][sysexe]tcpip$ssh_sftp2.exe: SSH Secure Shell OpenVMS &lt;BR /&gt;(V5.5) 3.2.0 on COMPAQ Professional Workstation  - VMS V7.3-2</description>
      <pubDate>Fri, 13 Mar 2009 17:14:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378901#M16328</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-03-13T17:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Directing SFTP output to a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378902#M16329</link>
      <description>Here's the actual commands and output.  I should also mention, I am able to sftp, its just when I include the DEFINE/USER SYS$COMMAND NL: command that I get the errors listed above.  Without the DEFINE/USER SYS$COMMAND NL: command, the output goes to the screen.&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;$ sftp -o "batchmode yes"&lt;BR /&gt;illegal option -- o&lt;BR /&gt;Usage: sftp2 [-D debug_level_spec] [-b batchfile] [-S path] [-h] [-V] [-P ssh2-p&lt;BR /&gt;ort] host&lt;BR /&gt;&lt;BR /&gt;$ tcpip show version&lt;BR /&gt; &lt;BR /&gt;  HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 1&lt;BR /&gt;  on a hp AlphaServer ES47 7/1000 running OpenVMS V7.3-2&lt;BR /&gt;&lt;BR /&gt;$ sftp "-V"&lt;BR /&gt;dsa0:[sys0.syscommon.][sysexe]tcpip$ssh_sftp2.exe;1: SSH Secure Shell OpenVMS (V&lt;BR /&gt;1.0) 2.4.1 on hp AlphaServer ES47 7/1000 - VMS V7.3-2</description>
      <pubDate>Fri, 13 Mar 2009 17:28:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378902#M16329</guid>
      <dc:creator>Dan Letobar</dc:creator>
      <dc:date>2009-03-13T17:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Directing SFTP output to a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378903#M16330</link>
      <description>Oh dear, that early version of TCPIP services was not brilliant at handling batch mode sftp.&lt;BR /&gt;&lt;BR /&gt;Have a look at the release notes for ECO 7 for details of the later fixes.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="ftp://ftp.itrc.hp.com/openvms_patches/alpha/V7.3-2/DEC-AXPVMS-TCPIP-V0504-15ECO7-1.txt" target="_blank"&gt;ftp://ftp.itrc.hp.com/openvms_patches/alpha/V7.3-2/DEC-AXPVMS-TCPIP-V0504-15ECO7-1.txt&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It is also vital that your batch file is in stream_lf format.&lt;BR /&gt;&lt;BR /&gt;The option for batch mode is capital B, so needs to be in quotes, as mentioned in the notes.&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 13 Mar 2009 19:01:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378903#M16330</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2009-03-13T19:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Directing SFTP output to a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378904#M16331</link>
      <description>&lt;!--!*#--&gt;&amp;gt;  Oh dear, [...]&lt;BR /&gt;&lt;BR /&gt;I'll say.  Yikes.</description>
      <pubDate>Fri, 13 Mar 2009 19:10:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378904#M16331</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-03-13T19:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Directing SFTP output to a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378905#M16332</link>
      <description>Thanks for the info.  What do we need to do to upgrade?</description>
      <pubDate>Sat, 14 Mar 2009 01:25:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378905#M16332</guid>
      <dc:creator>Dan Letobar</dc:creator>
      <dc:date>2009-03-14T01:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Directing SFTP output to a file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378906#M16333</link>
      <description>&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;What do we need to do to upgrade?&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;Download&lt;BR /&gt;&lt;BR /&gt;&lt;A href="ftp://ftp.itrc.hp.com/openvms_patches/alpha/V7.3-2/DEC-AXPVMS-TCPIP-V0504-15ECO7-1.PCSI-DCX_AXPEXE" target="_blank"&gt;ftp://ftp.itrc.hp.com/openvms_patches/alpha/V7.3-2/DEC-AXPVMS-TCPIP-V0504-15ECO7-1.PCSI-DCX_AXPEXE&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;to the machine, RUN the file, and then PRODUCT INSTALL the resulting PCSI kit.&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;Martin</description>
      <pubDate>Sat, 14 Mar 2009 03:00:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directing-sftp-output-to-a-file/m-p/4378906#M16333</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2009-03-14T03:00:21Z</dc:date>
    </item>
  </channel>
</rss>

