scp/untar in parallel issue tar : Unexpected EOF in archive

Hi Guys,

I am facing a strange issue
while doing parallel (using & for background) scp/untar operation from my unix box to multiple unix boxes...
I am getting
tar : unexpected EOF in archive error
the code is as follows.,,,

for i in 10 
do
sh -c "scp <command> ; ssh tar -xf  <tar> -C <location>" &
done 

Please help me get rid of this,
Also please comment on reliability of SCP as i read that the issue can be due to SCP?
The code is just a skeleton, i am sure the syntax is correct

I am not sure what you are trying to accomplish here, but as you say, this is a skeleton. But the first argument to man ssh (ssh) is a hostname, and man scp ("scp") needs a source and destination file(s), so did you mean:

sh -c "scp sourcefile destination; ssh hostname tar -xf  <tar> -C <location>" &

Also, why the call to a sh?

Can you provide a bit more than a skeleton?