[wellylug] Shell script problem

Atom Smasher atom at smasher.org
Thu Nov 1 12:11:00 NZDT 2007


On Thu, 1 Nov 2007, John Fouhy wrote:

> Problem: rsync ignores the excludes -- that is, it behaves as if the 
> command line is 'rsync -vva $SOURCE $DEST'.
>
> If I change the last line to look like this:
>
> echo rsync -vva $EXCLUDES $SOURCE $DEST
>
> and then copy/paste the resulting command line into a bash terminal, 
> then it works as I want.
>
> Can anyone offer any suggestions?
================

what happens if you do this in the script:

   echo rsync -vva $EXCLUDES $SOURCE $DEST | [ba]sh

note that "[ba]sh" means bash OR sh.


-- 
         ...atom

  ________________________
  http://atom.smasher.org/
  762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
  -------------------------------------------------

 	"The people I put in jail have more honor than the top
 	 administration in this organization."
 		-- Bob Hoffman, B.A.T.F. agent,
 		"60 Minutes", January 1993





More information about the wellylug mailing list