Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2004
    Location
    India
    Posts
    41

    Exclamation Unanswered: Need a help in unix Command

    Hi EveryBody,
    I have to transfer a large amount of files to another server.
    All the files start with the year 2003.
    i tried connecting to the remote box and transfer the file using put command

    put 200307??.* -------->But this is not working(may be taking long time.

    IS there any other easy way to transfer the files to remote server.

    20030728.2070501.IBILL.zip.gz
    20030728.2070601.ICLL.zip.gz
    20030728.2070701.ICLL.zip.gz
    20030728.2070801.ICLL.zip.gz

  2. #2
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    138
    Hi arunprasadlv,
    make a tar-file first and then transfer only this file to the server.

    tar cvf all2003.tar 200307??.* # create the file

    tar xvf all2003.tar # extract the file on the server
    Greetings from germany
    Peter F.

  3. #3
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    Code:
    #!/bin/sh
    ftp -i target.host.com <<!EOF
    binary
    mput 200307*
    bye
    !EOF

  4. #4
    Join Date
    Jan 2005
    Posts
    7
    tar cvf - 200307* | rsh <rmthost> -l <rmtlogin> "(cd <rmtpath>; tar xvf -)"

    ps. must have .rhosts on <rmthost> for user <rmtuser> with your host entry "myhost myuser"

    Marco

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •