- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: 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
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
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
11-26-2010 05:24 AM
11-26-2010 05:24 AM
I seem to have a problem similar to others already having posted here. I want to redirect the output of a SFTP command unter OpenVMS (SSH Secure Shell OpenVMS (V5.5) 3.2.0 on AlphServer ES40 - VMS 8.3).
For that I use:
> pipe (define/user sys$command nl: ; -
sftp "-B" x.cmd user@host) |copy sys$pipe: ls.out
where x.cmd is:
ls *.txt
exit
But the command never returns. When I do the commands interactively, the sftp ... alone works well, but when I call define /user sys$command nl: before, once again the sftp-command does not terminate.
Anybody got an idea where the problem might be?
Thanks a lot in advance
Jörg Mohren
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2010 08:35 AM
11-26-2010 08:35 AM
Re: Redirecting output from sftp
2 years since our initial discussion!
http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1257512
When I answered that thread, I was using TCPIP V5.4 on Alpha VMS 7.3-2, but I no longer have those systems to hand.
I can confirm that the same problem exists with TCPIP Service 5.7 ECO1 on IA64 V8.3-1H1.
Whilst I cannot track down the exact sequence of events, I have found that the
"ls *.xxx"
hang is, in fact, a looping subprocess on the local side. It appears to be issuing massive amounts of i/o against nla0:.
I have also observed that a plain "ls" works perfectly well.
So, perhaps you could utilise this and change your command to:
pipe (def/user sys$command nl: ; sftp "-B" x.cmd user@host ) | -
sea sys$pipe ".txt"/out=ls.out
Duncan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2010 12:31 PM
11-26-2010 12:31 PM
Re: Redirecting output from sftp
What about:
$ pipe (define/user sys$command nl: ; -
sftp "-B" x.cmd user@host) > ls.out
or possibly:
$ DEFINE/USER SYS$COMMAND NL:
$ PIPE sftp "-B" x.cmd user@host > ls.out
Another redirection trick that might work
$ IF p1.EQS."REDIRECT"
$ THEN
$ 'p2'
$ 'p3'
$ 'p4'
$ 'p5'
$ 'p6'
$ 'p7'
$ 'p8'
$ EXIT
$ ENDIF
$ WRITE SYS$OUTPUT "Starting"
$ self=F$PARSE(";",F$ENVIRONMENT("PROCEDURE"))
$ @'self'/OUT=REDIR.OUT REDIRECT "DEFINE/USER SYS$COMMAND NL:" "sftp ""-B"" x.cmd user@host"
$ WRITE SYS$OUTPUT "Ending"
$ EXIT
(sorry, I don't have any nodes running sftp that I can test on)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2010 02:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2010 03:26 AM
11-29-2010 03:26 AM
Re: Redirecting output from sftp
The solution of RBrown worked out well while the others did not terminate.
Thank you for your help.
Jörg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2010 03:30 AM
11-29-2010 03:30 AM