Thread: SCP stalls

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    3
    Rep Power
    0

    Angry SCP stalls


    Hi all,

    I am trying to copy some large files from a 2000 box running Cygwin to another NT box running Cygwin (and SSHD) using SCP. I am running SCP in a loop for pushing all the files.

    The problem is, SOMETIMES, the SCP command stalls completely. I have to kill it to get the loop running again.

    Any ideas, why it is happening? Please help.
  2. #2
  3. Introspective
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    3,317
    Rep Power
    110
    when transferring several files, I usually tar them into a single object with tar -zxvf ball.tar.gz file1 file2 file3.. and then just copy the single item over with scp and extract with tar -zxvf.

    It might make things a bit simpler.


    christo
    This is me: http://chris.uk.com
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    3
    Rep Power
    0
    I had to switch to sftp to do it successfully. I generated a batch file using perl and used this batch file to push files to the server using sftp. This works great.

    I think, as cygwin runs on NT, the NT does not let the port 22 go really quick. So, when scp requests ssh connection for transferring the next file, sometimes it finds the port still tied up with previous transaction.. and hence stalls.

    Am I thinking right?

IMN logo majestic logo threadwatch logo seochat tools logo