- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: problems in scp with expect-
Operating System - Linux
1748348
Members
5119
Online
108762
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
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
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
09-03-2007 06:58 PM
09-03-2007 06:58 PM
problems in scp with expect-
Guys,
I really need help as quickly as i can get on this expect scipt.it is not working as of now.Pls do try with this ur local machine and tel me whts wrong and wht needs t be done.pls post me the script if possible.its really urgent.
#!/usr/bin/expect
log_user 0
set my_passphrase "passphrase"
set my_password "xxxxx"
spawn "/usr/bin/scp" "root@x.x.x.x:/tmp/logstatus ."
while {1} {
expect {
"root@x.x.x.x's password:" {
send "$my_password?\n"
print "sending password";
}
}
break
}
interact
I really need help as quickly as i can get on this expect scipt.it is not working as of now.Pls do try with this ur local machine and tel me whts wrong and wht needs t be done.pls post me the script if possible.its really urgent.
#!/usr/bin/expect
log_user 0
set my_passphrase "passphrase"
set my_password "xxxxx"
spawn "/usr/bin/scp" "root@x.x.x.x:/tmp/logstatus ."
while {1} {
expect {
"root@x.x.x.x's password:" {
send "$my_password?\n"
print "sending password";
}
}
break
}
interact
- Tags:
- scp
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2007 09:21 PM
09-03-2007 09:21 PM
Re: problems in scp with expect-
Hello,
I'll try with
spawn "/usr/bin/scp" root@x.x.x.x:/tmp/logstatus .
instead of
spawn "/usr/bin/scp" "root@x.x.x.x:/tmp/logstatus ."
for once, and
send "$my_password?\r"
instead of
send "$my_password?\n"
Jean-Yves
points are welcome
I'll try with
spawn "/usr/bin/scp" root@x.x.x.x:/tmp/logstatus .
instead of
spawn "/usr/bin/scp" "root@x.x.x.x:/tmp/logstatus ."
for once, and
send "$my_password?\r"
instead of
send "$my_password?\n"
Jean-Yves
points are welcome
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP