- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Using SFTP in Batch Mode on OpenVMS
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 02:26 AM
тАО01-08-2007 02:26 AM
I'm trying to get an SFTP command to work in a VMS batch job. The command format is as follows:
$ SFTP -v "-B"
where "abc" is a valid user name and "xyz" is a valid node name.
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:
Error: Could not read the batchfile.
The protection on the input file is
(S:RWED,O:RWED,G:RE,W:RE)
Any help would be appreciated. Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 03:50 AM
тАО01-08-2007 03:50 AM
Re: Using SFTP in Batch Mode on OpenVMS
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=985928
JT:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 04:25 AM
тАО01-08-2007 04:25 AM
Re: Using SFTP in Batch Mode on OpenVMS
details, it's hard to tell if the
"
directory for the batch job, which might
easily be different from your interactive
default directory. If it's some relative
spec and the default directories are
different, the explanation could be pretty
simple.
What, exactly, are "
default device-directory specs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 04:26 AM
тАО01-08-2007 04:26 AM
Re: Using SFTP in Batch Mode on OpenVMS
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 04:31 AM
тАО01-08-2007 04:31 AM
Re: Using SFTP in Batch Mode on OpenVMS
$ SFTP -v "-B" SYS$SYSROOT:[SYSMGR]Filex.txt user1@lnx32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 05:07 AM
тАО01-08-2007 05:07 AM
SolutionAround here, I see only "Error: Could not
read the batchfile."
alp $ tcpip show version
HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 6
on a COMPAQ Professional Workstation XP1000 running OpenVMS V7.3-2
alp $ ssh "-V"
alp$dka0:[sys0.syscommon.][sysexe]tcpip$ssh_ssh2.exe: SSH Secure Shell OpenVMS (
V5.5) 3.2.0 on COMPAQ Professional Workstation - VMS V7.3-2
On the other hand, I get some success if I
specify the batch file using a UNIX-like
syntax, "/SYS$SYSROOT/SYSMGR/FILEX.TXT" (or
"/SYS$MANAGER/FILEX.TXT").
However, if that file is not "Record format:
Stream_LF", then SFTP appears to try to
convert it (in place, more or less), and if
run by some peon without write permission to
that directory (or file?), it fails with
something like:
Warning: Converting file /sys$manager/filex.txt to Stream_LF.
openvms_specific/OPENVMS_SPECIFIC.C:1911: Error calling CONV$CONVERT for /sys$manager/filex.txt.
Status = %CONV-F-OPENOUT, error opening !AS as output
So, my advice is, "Think UNIX.", which
means: Start with a Stream_LF batch file, and
specify its location with a UNIX-like
syntax. For that matter, if you're
_sending_ any files, thay'd better look
UNIXy, too (Stream_LF or, perhaps,
fixed-512), if you expect them to look like
anything at the other end.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 05:59 AM
тАО01-08-2007 05:59 AM
Re: Using SFTP in Batch Mode on OpenVMS
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2007 12:41 AM
тАО01-09-2007 12:41 AM