The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 12-16-2007
chris1234 chris1234 is offline
Registered User
 

Join Date: Apr 2006
Posts: 74
Transfer contents from one unix server to another

Hi Guys,

Well i dont have alot of experience in shell scripting. I am mostly into OOP. So i was given a task to

"Transfer the contents of files in a zip format from one unix server to another unix server"

What i am trying to do is create a shell script when runs will transfer all the files in zip format from one unix directory to another unix server directory. How can i do that?

I've searched on google and most of the time they used " scp " command. I am not at work but i tried using something like this:

Code:
data = /abc/web/docs/xyz.com/props

scp $data/.*zip. fast:/xyz/abc/mlo.com/klm
But unfortunately my script is not working. Any clues how can i acheieve this?

Thanks
Reply With Quote
Remove advertisements
!!
Forum Sponsor