- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Batch mode SFTP redirecting output to a file ...
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
тАО06-28-2007 04:47 PM
тАО06-28-2007 04:47 PM
Batch mode SFTP redirecting output to a file ?
Is is possible to re-direct the SSH output to a file ?
Consider
$ fname = "sftp.lis"
$ define sys$output 'fname'
$ define sys$error 'fname'
$ sftp "-B" commands.ftp server@192.68.0.1
$ deassign sys$output
$ deassign sys$error
where commands.ftp is
pwd
ls -l
quit
the file sftp.lis has the following contents
$ type sftp.lis
sftp> pwd
/
sftp> ls -l
sftp> quit
ssh_pipe_stream_destroy
This would work with FTP but not SFTP
We are running UCX 5.4 ECO 5 on VMS 7.3-2/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2007 05:01 PM
тАО06-28-2007 05:01 PM
Re: Batch mode SFTP redirecting output to a file ?
with plain "ssh
command procedure, it was necessary to say:
-o "batchmode yes"
to get some things to work properly. I see
("sftp -h") that sftp offers an option:
"[-o option_to_ssh2]"
so it might be worth trying the "batchmode"
thing with sftp, too. No bets.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 05:18 PM
тАО07-02-2007 05:18 PM
Re: Batch mode SFTP redirecting output to a file ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 06:17 PM
тАО07-02-2007 06:17 PM
Re: Batch mode SFTP redirecting output to a file ?
Did you resubmit the batch job AFTER you modified it for redirection ?
A submit command submits the last version and thus modifications done after the submit are not taken into account (until the next submit).
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 06:22 PM
тАО07-02-2007 06:22 PM
Re: Batch mode SFTP redirecting output to a file ?
you are not obliged to re-submit, you can just do
$ copy/overlay a.com; a.com;-1
It will be enough to have the lastest a.com submitted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 06:25 PM
тАО07-02-2007 06:25 PM