SunQuest
           UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old September 11th, 2003, 04:31 PM
shamiul shamiul is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 3 shamiul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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.

Reply With Quote
  #2  
Old September 15th, 2003, 08:31 PM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,296 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 5 m 42 sec
Reputation Power: 101
Send a message via ICQ to christo Send a message via Yahoo to christo
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

Reply With Quote
  #3  
Old September 17th, 2003, 02:58 PM
shamiul shamiul is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 3 shamiul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > SCP stalls


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway