Hello-
I'm having some problems using rcp with a VAX VMS cluster.
Basically, I'm using a simple perl loop to grab some files off a VMS
machine. However, i seem to be getting a lot of connection reset by peer
errors. Here's a simplified version of the code which will reproduce the
errors:
@array = ("plam039.lis", "plam037.lis", "plam038.lis", "plam036.lis",
"plam169_tiny.lis", "plam171_tiny.lis", "plam211.lis", "plam212.lis",
"plam209.lis",
"plam210.lis", "plma221.lis", "plmb221.lis", "mcen044.lis", "mcen045.lis",
"mcna162.lis", "mcna164.lis",
"mcnb158.lis", "tela004.lis", "telb004.lis", "telc004.lis", "amsa161.lis",
"amsb161.lis", "amsc162.lis");
#!/usr/local/bin/perl
foreach $single (@array)
{
system "rcp rdadata\@bomfg.micron.com:'[rdaetch.rdadata.spc]$single'
$single";
print "$single\n";
}
When this runs, I get the following results:
1001:kaweed@ssun-sun/home/kaweed/temp> error.pl
plam039.lis
plam037.lis
plam038.lis
plam036.lis
plam169_tiny.lis
plam171_tiny.lis
plam211.lis
bomfgd.micron.com: Connection reset by peer
plam212.lis
plam209.lis
plam210.lis
plma221.lis
plmb221.lis
mcen044.lis
bomfgd.micron.com: Connection reset by peer
mcen045.lis
mcna162.lis
bomfgd.micron.com: Connection reset by peer
mcna164.lis
mcnb158.lis
tela004.lis
telb004.lis
telc004.lis
amsa161.lis
bomfgd.micron.com: Connection reset by peer
amsb161.lis
amsc162.lis
1002:kaweed@ssun-sun/home/kaweed/temp>
The bomfgd.micron.com is a VAX VMS box. As you can see, this simple
foreach() loop from the SunOS box is attempting to copy the files. However,
every time this is run, 2-4 files get reset. There seems to be no
rhyme/reason as to time, traffic amount, etc.
Any ideas on this? Why these are getting reset? I've even tried putting in
a simple sleep(3); statement to sleep for 3 seconds, but it still resets. I
look forward to any replies!
Kris