- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to install "expect" and use it with ssh ftp?
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
Forums
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
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
05-13-2004 03:29 PM
05-13-2004 03:29 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 03:40 PM
05-13-2004 03:40 PM
SolutionThis link should definitely help you.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140032
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 03:46 PM
05-13-2004 03:46 PM
Re: How to install "expect" and use it with ssh ftp?
Hi Clement,
Ignore the earlier post. You can download from the below link for 11.0. All the information also available there.
http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.41/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 04:09 PM
05-13-2004 04:09 PM
Re: How to install "expect" and use it with ssh ftp?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 04:17 PM
05-13-2004 04:17 PM
Re: How to install "expect" and use it with ssh ftp?
You need to have all of those on your system prior to installion.
Download and gunzip the depot file
to install:
swinstall -s
That will run the installer
watch the output and respond to errors.
SEP
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
05-13-2004 04:21 PM
05-13-2004 04:21 PM
Re: How to install "expect" and use it with ssh ftp?
Please don't assign any points for wrong answers and incomplete answer. If you assign full points for an incomplete answer no body is going to help you becoz the query will be signed with "Magic Symbol" as it is closed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 04:24 PM
05-13-2004 04:24 PM
Re: How to install "expect" and use it with ssh ftp?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 02:58 AM
05-18-2004 02:58 AM
Re: How to install "expect" and use it with ssh ftp?
#!/usr/local/bin/expect --
spawn ftp
expect "Name: "
send "user\r"
expect "331:"
expect "Password:"
send "password\r"
expect "ftp> "
send "prompt\r"
expect "ftp> "
send "mput filename\r"
expect "ftp> "
send "quit\r"
send "\r"
with sftp it requires a different syntax, if you are trying to do batch mode or croned processes, you will have to review the sftp man pages, I believe the syntax requires
example:
#!/usr/bin/expect
spawn sftp user@host
expect "password:"
send "REAL PASSWORD\r"
expect "sftp> "
send "lcd CORRECT LOCAL DIRECTORY\r"
expect "sftp> "
send "cd CORRECT REMOTE DIRECTORY\r"
expect "sftp> "
send "put FILENAME\r"
expect "sftp> "
send "quit\r"