On Fri, May 27, 2011 at 14:10:16 -0700 , John W. Krahn wrote:
>
> The real problem is that $RSYNC_OPTS contains whitespace and you
> can't mix system(LIST) and system(STRING) together like that. It has
> to be either:
>
> system($RSYNC, split( ' ', $RSYNC_OPTS ),
> "$host:/Blah/blah/Blue/$host_env/$cluster", "/tmp/$host");
>
> Or:
>
> system("$RSYNC $RSYNC_OPTS $host:/Blah/blah/Blue/$host_env/$cluster
> /tmp/$host");
Note that the LIST form of system won't have problems with shell
variables, so is generally a better idea unless the shell variable
interpolation behavior is desired.
--
Chris Nehren | Coder, Sysadmin, Masochist
Shadowcat Systems Ltd. | http://shadowcat.co.uk/
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/