<?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: Using SFTP in Batch Mode on OpenVMS in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021614#M53622</link>
    <description>With all the disguising of the command&lt;BR /&gt;details, it's hard to tell if the&lt;BR /&gt;"&lt;FILE_SPEC&gt;" is valid from the default&lt;BR /&gt;directory for the batch job, which might&lt;BR /&gt;easily be different from your interactive&lt;BR /&gt;default directory.  If it's some relative&lt;BR /&gt;spec and the default directories are&lt;BR /&gt;different, the explanation could be pretty&lt;BR /&gt;simple.&lt;BR /&gt;&lt;BR /&gt;What, exactly, are "&lt;FILE_SPEC&gt;" and the two&lt;BR /&gt;default device-directory specs?&lt;BR /&gt;&lt;/FILE_SPEC&gt;&lt;/FILE_SPEC&gt;</description>
    <pubDate>Mon, 08 Jan 2007 12:25:03 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2007-01-08T12:25:03Z</dc:date>
    <item>
      <title>Using SFTP in Batch Mode on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021612#M53620</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm trying to get an SFTP command to work in a VMS batch job.  The command format is as follows:&lt;BR /&gt;&lt;BR /&gt;$ SFTP -v "-B" &lt;FILE_SPEC&gt; abc@xyz&lt;BR /&gt;&lt;BR /&gt;where "abc" is a valid user name and "xyz" is a valid node name.&lt;BR /&gt;&lt;BR /&gt;Public key authentication is set on both nodes.  The client node is an Itanium running OpenVMS 8.2.  The server node is a Linux machine.  This command works correctly when entered at an interactive DCL level, but fails when run as a VMS batch job (i.e., job submitted to a VMS batch queue.)  The error being returned is:&lt;BR /&gt;&lt;BR /&gt;Error: Could not read the batchfile.&lt;BR /&gt;&lt;BR /&gt;The protection on the input file is &lt;BR /&gt;   (S:RWED,O:RWED,G:RE,W:RE)&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.  Thank you.&lt;/FILE_SPEC&gt;</description>
      <pubDate>Mon, 08 Jan 2007 10:26:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021612#M53620</guid>
      <dc:creator>Joseph J. Affrunti</dc:creator>
      <dc:date>2007-01-08T10:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using SFTP in Batch Mode on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021613#M53621</link>
      <description>Does the information in threadId 985928 help ?&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=985928" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=985928&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;JT:</description>
      <pubDate>Mon, 08 Jan 2007 11:50:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021613#M53621</guid>
      <dc:creator>John Travell</dc:creator>
      <dc:date>2007-01-08T11:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using SFTP in Batch Mode on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021614#M53622</link>
      <description>With all the disguising of the command&lt;BR /&gt;details, it's hard to tell if the&lt;BR /&gt;"&lt;FILE_SPEC&gt;" is valid from the default&lt;BR /&gt;directory for the batch job, which might&lt;BR /&gt;easily be different from your interactive&lt;BR /&gt;default directory.  If it's some relative&lt;BR /&gt;spec and the default directories are&lt;BR /&gt;different, the explanation could be pretty&lt;BR /&gt;simple.&lt;BR /&gt;&lt;BR /&gt;What, exactly, are "&lt;FILE_SPEC&gt;" and the two&lt;BR /&gt;default device-directory specs?&lt;BR /&gt;&lt;/FILE_SPEC&gt;&lt;/FILE_SPEC&gt;</description>
      <pubDate>Mon, 08 Jan 2007 12:25:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021614#M53622</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-01-08T12:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using SFTP in Batch Mode on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021615#M53623</link>
      <description>Thanks for your reply.  &lt;BR /&gt;&lt;BR /&gt;I had seen this entry before.  There doesn't seem to be any problem with authentication. The -v swith puts out verbose information and we can see from it that the client is successfully connecting to the server.  The problem seems to be that when running as a batch job, the client (I think) cannot read the input file. Unfortunately, it doesn't put out any indication as to why it can't read the file.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Jan 2007 12:26:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021615#M53623</guid>
      <dc:creator>Joseph J. Affrunti</dc:creator>
      <dc:date>2007-01-08T12:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using SFTP in Batch Mode on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021616#M53624</link>
      <description>The actual command is:&lt;BR /&gt;&lt;BR /&gt;$ SFTP -v "-B" SYS$SYSROOT:[SYSMGR]Filex.txt user1@lnx32</description>
      <pubDate>Mon, 08 Jan 2007 12:31:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021616#M53624</guid>
      <dc:creator>Joseph J. Affrunti</dc:creator>
      <dc:date>2007-01-08T12:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using SFTP in Batch Mode on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021617#M53625</link>
      <description>This works interactively for you?&lt;BR /&gt;&lt;BR /&gt;Around here, I see only "Error: Could not&lt;BR /&gt;read the batchfile."&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 6&lt;BR /&gt;  on a COMPAQ Professional Workstation XP1000 running OpenVMS V7.3-2&lt;BR /&gt;&lt;BR /&gt;alp $ ssh "-V"&lt;BR /&gt;alp$dka0:[sys0.syscommon.][sysexe]tcpip$ssh_ssh2.exe: SSH Secure Shell OpenVMS (&lt;BR /&gt;V5.5) 3.2.0 on COMPAQ Professional Workstation  - VMS V7.3-2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On the other hand, I get some success if I&lt;BR /&gt;specify the batch file using a UNIX-like&lt;BR /&gt;syntax, "/SYS$SYSROOT/SYSMGR/FILEX.TXT" (or&lt;BR /&gt;"/SYS$MANAGER/FILEX.TXT").&lt;BR /&gt;&lt;BR /&gt;However, if that file is not "Record format:&lt;BR /&gt;Stream_LF", then SFTP appears to try to&lt;BR /&gt;convert it (in place, more or less), and if&lt;BR /&gt;run by some peon without write permission to&lt;BR /&gt;that directory (or file?), it fails with&lt;BR /&gt;something like:&lt;BR /&gt;&lt;BR /&gt;Warning: Converting file /sys$manager/filex.txt to Stream_LF.&lt;BR /&gt;openvms_specific/OPENVMS_SPECIFIC.C:1911: Error calling CONV$CONVERT for /sys$manager/filex.txt.&lt;BR /&gt; Status = %CONV-F-OPENOUT, error opening !AS as output&lt;BR /&gt;&lt;BR /&gt;So, my advice is, "Think UNIX.", which&lt;BR /&gt;means: Start with a Stream_LF batch file, and&lt;BR /&gt;specify its location with a UNIX-like&lt;BR /&gt;syntax.  For that matter, if you're&lt;BR /&gt;_sending_ any files, thay'd better look&lt;BR /&gt;UNIXy, too (Stream_LF or, perhaps,&lt;BR /&gt;fixed-512), if you expect them to look like&lt;BR /&gt;anything at the other end.</description>
      <pubDate>Mon, 08 Jan 2007 13:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021617#M53625</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-01-08T13:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using SFTP in Batch Mode on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021618#M53626</link>
      <description>Bingo!!!&lt;BR /&gt;&lt;BR /&gt;The file was in Stream_LF format but it was the UNIX syntax that did the trick.  Thank you very much, Steven.  And also you, John, for your reply.</description>
      <pubDate>Mon, 08 Jan 2007 13:59:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021618#M53626</guid>
      <dc:creator>Joseph J. Affrunti</dc:creator>
      <dc:date>2007-01-08T13:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using SFTP in Batch Mode on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021619#M53627</link>
      <description>The solution is to use UNIX syntax.  Thanks to all who replied.</description>
      <pubDate>Tue, 09 Jan 2007 08:41:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sftp-in-batch-mode-on-openvms/m-p/5021619#M53627</guid>
      <dc:creator>Joseph J. Affrunti</dc:creator>
      <dc:date>2007-01-09T08:41:47Z</dc:date>
    </item>
  </channel>
</rss>

