- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: SFTP batch job vs interactive
Operating System - OpenVMS
1753469
Members
5265
Online
108794
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО04-23-2009 11:49 AM
тАО04-23-2009 11:49 AM
SFTP batch job vs interactive
OpenVMS Alpha 8.3
TCPIP V5.6
When trying to do a sftp "-B" file.nam user@domain.com
from an interactive session, this command works. When trying to do it via a batch jobs, get the following error:
Failed to set terminal mode to PASTHRU in sftp.d
and it does not return any information.
TCPIP V5.6
When trying to do a sftp "-B" file.nam user@domain.com
from an interactive session, this command works. When trying to do it via a batch jobs, get the following error:
Failed to set terminal mode to PASTHRU in sftp.d
and it does not return any information.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 12:43 PM
тАО04-23-2009 12:43 PM
Re: SFTP batch job vs interactive
There's an existing discussion of using sftp from batch:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=985928
Also see the sftp batch stuff in the http://h71000.www7.hp.com/doc/83final/ba548_90007/ba548_90007.pdf ssh manual and in the release notes.
A variant solution (and which you're aware of) involves pseudo-terminals.
http://groups.google.com/group/comp.os.vms/browse_thread/thread/935cb20e7ca233c1/e81df2ace8ab8835
And in various implementations of the sftp client on various platforms, switching to batch mode explicitly disallows prompting for the password; you have to switch away from passwords to use this.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=985928
Also see the sftp batch stuff in the http://h71000.www7.hp.com/doc/83final/ba548_90007/ba548_90007.pdf ssh manual and in the release notes.
A variant solution (and which you're aware of) involves pseudo-terminals.
http://groups.google.com/group/comp.os.vms/browse_thread/thread/935cb20e7ca233c1/e81df2ace8ab8835
And in various implementations of the sftp client on various platforms, switching to batch mode explicitly disallows prompting for the password; you have to switch away from passwords to use this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 03:37 PM
тАО04-23-2009 03:37 PM
Re: SFTP batch job vs interactive
James,
SSH (and I presume SFTP) make assumptions about their environment which aren't always true. Try preceeding your command with
$ DEFINE/USER SYS$COMMAND NL:
I find this is necessary when executing SSH commands from a command procedure. I'm guessing it's the same for SFTP.
SSH (and I presume SFTP) make assumptions about their environment which aren't always true. Try preceeding your command with
$ DEFINE/USER SYS$COMMAND NL:
I find this is necessary when executing SSH commands from a command procedure. I'm guessing it's the same for SFTP.
A crucible of informative mistakes
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP