On Fri, May 27, 2011 at 12:10, Ezra Taylor <[email protected]> wrote: > Hello All: > My rsync options are not being recognized in the system > function. I tried escaping the asterisks and single quotes to no avail. > Also, I do not want to install any rsync modules. Your help will be much > appreciated. Thanks. > > > my $RSYNC_OPTS=' -auvr --include='*/' --exclude='*' '; > my $RSYNC="/usr/bin/rsync"; > > > > > system("$RSYNC", "$RSYNC_OPTS", "$host:/Blah/blah/Blue/$host_env/$cluster", > "/tmp/$host");
Try single quotes for the strings that contain shell wildcards such as asterisk. Ken Wolcott -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
