HPE GreenLake Administration
Operating System - HP-UX
1834089
Members
2268
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
03-16-2005 08:56 AM
03-16-2005 08:56 AM
sftp
hi all
a client was using regular ftp and now is moving to sftp. the only problem was he was using it in cron with something like:
set -o xtrace
/tmp/tmp2
tmpfile=tmp_error_log
USR='user'
PASSWD='user'
date "+******************* Today is %A, %B %d, %Y ********************"
cd /tmp/tmp2
ftp -nv << EOF1
open 10.1.2.3
user test Ylh3\&fk\#
get TESTO1.TXT
delete TEST01.TXT
quit
EOF1
is there an equivilent in sftp?
thx in advance
a client was using regular ftp and now is moving to sftp. the only problem was he was using it in cron with something like:
set -o xtrace
/tmp/tmp2
tmpfile=tmp_error_log
USR='user'
PASSWD='user'
date "+******************* Today is %A, %B %d, %Y ********************"
cd /tmp/tmp2
ftp -nv << EOF1
open 10.1.2.3
user test Ylh3\&fk\#
get TESTO1.TXT
delete TEST01.TXT
quit
EOF1
is there an equivilent in sftp?
thx in advance
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2005 09:17 AM
03-16-2005 09:17 AM
Re: sftp
ftp -nv << EOF1
change to
sftp << EOF1
Test the commands, but most of the ftp commands work with sftp.
SEP
change to
sftp << EOF1
Test the commands, but most of the ftp commands work with sftp.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2005 05:31 PM
03-16-2005 05:31 PM
Re: sftp
Try the following
1. Set up SSH public key authentication for the user between local host and remote host.
2. Copy the file transfer commands to a batch file
3. Sample file may look like
-get Test01.txt
-delete Test01.txt
quit
"-" is nescessary to enforce sftp not to abort and to continue executing succesive commands when a command fails
4.Place the batch file to a secure location.
5. Replace the ftp command as
sftp -b /path/to/batchfile user@remotehost.
All the Best
1. Set up SSH public key authentication for the user between local host and remote host.
2. Copy the file transfer commands to a batch file
3. Sample file may look like
-get Test01.txt
-delete Test01.txt
quit
"-" is nescessary to enforce sftp not to abort and to continue executing succesive commands when a command fails
4.Place the batch file to a secure location.
5. Replace the ftp command as
sftp -b /path/to/batchfile user@remotehost.
All the Best
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP