GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- problems in scp with expect-
Operating System - Linux
1847851
Members
2888
Online
104021
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
Forums
Discussions
back
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
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.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP