I am developing a program on my local machine (machineA). Once I make modifications I have to send the modified files to an external machine (machineC)which is on some network, which is inside another network (accessable through machineB).
For that purpose I wrote the following script;
I use like; ./send_to_machine_C_the_folder.sh folder_name
# 1. send from machineA to machineB
rsync -r $1 machineB:~/$1 --exclude "*.o" --exclude "*.ncb"
# 2. send from machineB to machineC
echo " rsync -r $1 machineC:~/$1 --exclude "*.o" --exclude "*.ncb" " | ssh machineB
# 3. send from machineC to machineD
echo " echo " rsync -r $1 machineD:~/$1 --exclude "*.o" --exclude "*.ncb"
" | ssh machineC " | ssh machineB
But I found the problem that when I modify files on machine A and run this script, I can not get the modifications on machineD.
Do you know what could be the cause of the problem or a better method to do this ?
P.D. I can not use CVS in none of these machines.