Thread: loop script
View Single Post
  #4 (permalink)  
Old 12-24-09, 16:03
sobnc sobnc is offline
Registered User
 
Join Date: Dec 2009
Posts: 22
step 4

Dear Sir
I am still waiting the example of loop script which would permit me to copy a remote file. I received this code before but i am not able to adapt it to a loop instruction.
The copy command is the following rcp remote_server:/home/file_to_copy .

EXIT=1
while [ $EXIT -ne 0 ];do
scp ...
EXIT=$?
done

Thanks
Reply With Quote