RE: Master rsync script for many file servers

"Geoffrey Scott" <[email protected]> Fri, 12 May 2006 11:13:14 +1000
Newsgroups gmane.org.user-groups.mlug.main
Message-ID <9DE681DC93551E4FA4C5B50D8BD90F3017D832@gfh-mail-01.guestsfurniturehire.com.au>
David wrote:
> Geoffrey Scott wrote:
>> Geoffrey Scott wrote:

Hi David, that's really useful.  Can I ask a few things about how/ why
you've done things? Or can you point me to some docs where I can RTFM
for the answer.

> 
> Hi Geoff,
> 
> Use the return value of an ls(1) .
> 
> #!/usr/bin/env bash

Why do you call env with bash as an argument?  In what way is it better
than just #!/bin/bash ?  

> HOSTS="hosta hostb hostc"
> SERVICES="smb cups postfix"
> 
> for host in ${HOSTS} ; do

When you expand variables why do you use curly braces?


> HIH.

Yes it will.  Cheers!

> David



Regards Geoff Scott