On Wed, 02 Aug 2006 21:50:51 +1000, Mark Woodward wrote:


> thanks to all for the suggestions. Paul, yep I settled on Julians solution
> though they all work! 
> 
> repos2local.rb
> exec "rsync -arvz $HOME/svnwd/Proj1/www/ /var/www/ --exclude=\".svn\""
> 
> This copies the 'www' folder from the repos over to /var/www (ignoring
> the .svn folders) but I'd now like to extend this. ie.
> 
> repos2local.rb
> exec "rsync -arvz $HOME/svnwd/Proj1/www/ /var/www/ --exclude=\".svn\""
> exec "rsync -arvz $HOME/svnwd/Proj1/includes/ /var/includes/
> --exclude=\".svn\""
> 
> ie chain together commands.
> 
> This only does the first exec and I'm wondering is this a 'thread' issue
> or similar?
> 
> Any ideas how I handle this?



'system' was what I needed. This is working!!
system ("rsync -arvz $HOME/svnwd/Proj1/www/ /var/www/ --exclude=\".svn\"") 
system ("rsync -arvz $HOME/svnwd/Proj1/includes/ /var/includes/
--exclude=\".svn\"")

So it appears each call to system waits for the previous to finish whereas
'exec' doesn't?


-- 
Mark