- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Redirecting output from SFTP
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
тАО08-08-2008 04:06 AM
тАО08-08-2008 04:06 AM
Redirecting output from SFTP
I am trying to redirect the output of a SFTP command under VMS 8.3. I already tried a pipe
pipe (define/user sys$command nl: ;-
sftp "-B" cmdfile user@host) -
> copy sys$pipe: sftp.out
but the command did not terminate. The cmdfile is stream_lf, and only contains two commands
ls *.xml
exit
Anybody got an idea where the problem might be?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2008 04:17 AM
тАО08-08-2008 04:17 AM
Re: Redirecting output from SFTP
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1185836
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2008 04:25 AM
тАО08-08-2008 04:25 AM
Re: Redirecting output from SFTP
Interactively, I can perform the commands without any problem. Without the redirection, the ls output is correctly written to my terminal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2008 04:28 AM
тАО08-08-2008 04:28 AM
Re: Redirecting output from SFTP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2008 07:13 AM
тАО08-08-2008 07:13 AM
Re: Redirecting output from SFTP
I have your command working fine for VMS to VMS in batch and interactive mode.
pipe (define/user sys$command nl: ;
sftp "-D 8" "-B" test.cmd morrisd@xxxxx) | copy sys$pipe: sftp.out
Is your remote server a non-VMS system? Perhaps the remote end is expecting some continuation command if the list exceeds a "screenful".
Try changing the ls *.xml to reference a single unique filename. If this works, then expand the list further until you hang. That would show the limit on the remote end.
Duncan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2008 08:28 AM
тАО08-08-2008 08:28 AM
Re: Redirecting output from SFTP
In some configurations and applications, configuring a VPN engine (and firewall) "out front" -- OpenVMS operating as an embedded environment -- can be an appropriate solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2008 10:27 PM
тАО08-10-2008 10:27 PM
Re: Redirecting output from SFTP
The remote system is an OpenVMS system as well.