•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 402,973 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,752 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 1451 | Replies: 6
![]() |
•
•
Join Date: Oct 2007
Posts: 267
Reputation:
Rep Power: 1
Solved Threads: 26
Hey There,
How's the script as it stands? Basically you just need to loop around the scp command (highly depends on how that looping construct is executed, based on what you're looking to do)
Is the basic syntax to scp the file from the server you're on to the remote - to do it the other way, from the server you're on
optionally, for the remote host, instead of just the hostname
you might need to attach the copy to a specific user like this:
Hope that helps
, Mike
How's the script as it stands? Basically you just need to loop around the scp command (highly depends on how that looping construct is executed, based on what you're looking to do)
•
•
•
•
scp file1 host1:/some/dir/.
Is the basic syntax to scp the file from the server you're on to the remote - to do it the other way, from the server you're on
•
•
•
•
scp host1:/some/dir/file1 .
optionally, for the remote host, instead of just the hostname
•
•
•
•
host1
you might need to attach the copy to a specific user like this:
•
•
•
•
user1@host
Hope that helps

, Mike
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
•
•
Join Date: Oct 2006
Posts: 13
Reputation:
Rep Power: 2
Solved Threads: 0
•
•
•
•
It helps if you have already upload your public ssh-rsa key to the remote machine. Then you don't have to enter the password each time the scp is executed.
Hi Thanks for reply ..
I am new to the scripting ... also this concept could you please give the some detail explanation on this , so it may be helpful.
Thanks in Advance
Madan
Madan Kumar T
Bangalore.
Bangalore.
•
•
Join Date: Jul 2008
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
generate ssh keys:
http://www.daniweb.com/forums/thread130410.html
I think eggi has posted all the information you need.
http://www.daniweb.com/forums/thread130410.html
I think eggi has posted all the information you need.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Previous Thread: if statement question
- Next Thread: command to telnet console using shell-script


Linear Mode