- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- SFTP -b batchfile
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
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-11-2005 09:51 PM
тАО08-11-2005 09:51 PM
My command looks like this
$ sftp -b batchfile.txt 'user'@'node'
in batchfile.txt
ls
bye
The command produces no output, no errors. SSH en SCP works fine.
I probably am doing something stupid simple wrong. Anybody out there using this command the same way and can you provide me with an example batchfile?
Bart
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2005 10:00 PM
тАО08-11-2005 10:00 PM
Re: SFTP -b batchfile
isn't the batchoption -B, so the command should be sftp "-B"?
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2005 10:05 PM
тАО08-11-2005 10:05 PM
Re: SFTP -b batchfile
I've tried it but I do not receive any output from the commands in my batchfile. Do you have an example?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2005 10:35 PM
тАО08-11-2005 10:35 PM
Re: SFTP -b batchfile
I just noticed, that in the manual it states -b and the sftp -h states -B.
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2005 01:00 AM
тАО08-12-2005 01:00 AM
Re: SFTP -b batchfile
Usage: sftp2 [-D debug_level_spec] [-b batchfile] [-S path] [-h] [-V] [-P ssh2-port] host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2005 01:06 AM
тАО08-12-2005 01:06 AM
Re: SFTP -b batchfile
sftp "-bcmd.txt" "-D 7"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2005 01:10 AM
тАО08-12-2005 01:10 AM
Re: SFTP -b batchfile
Peter,
I've found out this switch. But it doesn't help me at all.
I would like to know if
$ sftp "-B" batchfile 'user'@'node'
works at all when I put
get a.a
bye
in the batchfile.
am I really this stupid or the onlyone to use this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2005 01:13 AM
тАО08-12-2005 01:13 AM
Re: SFTP -b batchfile
now....what is the content of the cmd.txt in your case?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2005 01:30 AM
тАО08-12-2005 01:30 AM
Re: SFTP -b batchfile
with a little help from my friends I discovered that it only works on OpenVMS if you use this syntax;
$ sftp "-Bbatch.txt" 'username'@'node'
be SURE!! to USE a
*heavy sigh*.
Hope this helps others in their quest..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2005 01:30 AM
тАО08-12-2005 01:30 AM
Re: SFTP -b batchfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2005 01:34 AM
тАО08-12-2005 01:34 AM
Re: SFTP -b batchfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2005 01:36 AM
тАО08-12-2005 01:36 AM
Re: SFTP -b batchfile
Stream LF is a common requirements of 'non-native' VMS software, for example Apache etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2005 01:38 AM
тАО08-12-2005 01:38 AM
Re: SFTP -b batchfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2005 04:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2005 06:51 PM
тАО08-14-2005 06:51 PM
Re: SFTP -b batchfile
The latter is lucklily not entirly true. Apache 1.3 works fine with VMS-native files, and upcoming 2.1 is said to be likewise.
But for the rest: always worth a try.
Your particular problem doesn't surprise me.
It is know that some of these "products" have issues other than this requiement. Be it in functionality, interface or "help" (the Unix way). It would be a good thing these were signalled and solved _before_ release....
To add a
Willem
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2005 10:05 PM
тАО08-14-2005 10:05 PM
Re: SFTP -b batchfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 01:02 AM
тАО08-15-2005 01:02 AM
Re: SFTP -b batchfile
...all served files must be in Stream_LF format
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 01:12 AM
тАО08-15-2005 01:12 AM
Re: SFTP -b batchfile
Stream_LF format is required for all data files read or written by Java programs.
I have managed to waste quite a lot of time with Apache and JAVA simply because my files were not in stream format, or at least that what I thought was the case, perhaps I was wrong.
See also [APACHE]APACHE$CONVERT_STREAMLF.COM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 01:26 AM
тАО08-15-2005 01:26 AM
Re: SFTP -b batchfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2005 03:00 AM
тАО09-15-2005 03:00 AM
Re: SFTP -b batchfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2005 03:06 AM
тАО09-15-2005 03:06 AM
Re: SFTP -b batchfile
Purely Personal Opinion