How to copy one file from server to server using shell script, Pls help me in this
akileshb 0 Newbie Poster
Recommended Answers
Jump to PostWhat operating system are you using? If Linux (or Cygwin on Windows) you can use netcat (the nc command) to send/receive data. If just reading, then you can use wget.
Jump to PostNot really possible with BASH scripting. You would need something like expect or Python with pyexpect.
You could, however, use ssh keys which would not require a password, just an rsa key. Then you can use scp -i /path/to/key <Source> <Target>
All 7 Replies
Watael 4 Junior Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
muthu1802 -4 Newbie Poster
akileshb 0 Newbie Poster
ennoil 0 Newbie Poster
akileshb 0 Newbie Poster
Pkumar001 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.