- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sftp in batch ?
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
тАО12-06-2010 10:04 AM
тАО12-06-2010 10:04 AM
I was hoping I could use the similar command
sftp -b filename -o port=port# user@remote:
the file is not transmitting.
Doesn't the SFTP command work similarly to SCP?
Any insight on how to push the file in batch would be appreciated..
R
Solved! Go to Solution.
- Tags:
- sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2010 10:15 AM
тАО12-06-2010 10:15 AM
SolutionSee my suggestion (an example) here:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1195325
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2010 10:16 AM
тАО12-06-2010 10:16 AM
Re: sftp in batch ?
what is the content of your batchfile "filename"?
You can try:
$ echo 'put myfile' | sftp -b - -o port=port# user@remote
or
$ echo 'put myfile' > batch
$ sftp -b batch -o port=port# user@remote
Regards,
Mounaam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2010 10:19 AM
тАО12-06-2010 10:19 AM
Re: sftp in batch ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2010 10:20 AM
тАО12-06-2010 10:20 AM
Re: sftp in batch ?
Another script of mine is here:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1353692
Regards!
...JRF..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2010 11:33 AM
тАО12-06-2010 11:33 AM
Re: sftp in batch ?
I have done the public key exchange, I was hoping to be able to a single command line like I do with SCP.
Oh the joy!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2010 11:43 AM
тАО12-06-2010 11:43 AM
Re: sftp in batch ?
solutions was:
Public key exchange and :
sftp -o port=port# user@hostname<
put file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2010 11:44 AM
тАО12-06-2010 11:44 AM