Log formatting: quoting format option flags in Perl

2004-02-19 Thread Shifra Raffel
Hello,
I'm having trouble with setting desired punctuation and spaces with log 
formatting in a perl script.

The log-format options I am using are  --log-format=%h%a%l%o%f%t%u%c. Full 
rsync command at end of this message.

When I run the rsync command and write the results to a file,
$results = `$rsyncstr 21`,
my log format options are ignored if I have the options quoted in the 
command, and the log is unreadably compressed if I leave off the quotes. 
I've tried qq//, escaped \, escaped \',  and many other ways of escaping 
quotes. Any suggestions?

Full rsync string:

rsync -Cclrtvzn --log-format=%h %a %l %o %f %t %u %c /localdir 
[EMAIL PROTECTED]:/remotedir

Many thanks,
Shifra
--
Shifra Raffel
Programmer/Analyst
California Digital Library
University of California Office of the President
Oakland, CA
[EMAIL PROTECTED]  

--
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Log formatting: quoting format option flags in Perl

2004-02-19 Thread jw schultz
On Thu, Feb 19, 2004 at 07:19:52PM -0800, Shifra Raffel wrote:
 Hello,
 I'm having trouble with setting desired punctuation and spaces with log 
 formatting in a perl script.
 
 The log-format options I am using are  --log-format=%h%a%l%o%f%t%u%c. Full 
 rsync command at end of this message.
 
 When I run the rsync command and write the results to a file,
 $results = `$rsyncstr 21`,
 my log format options are ignored if I have the options quoted in the 
 command, and the log is unreadably compressed if I leave off the quotes. 
 I've tried qq//, escaped \, escaped \',  and many other ways of escaping 
 quotes. Any suggestions?
 
 Full rsync string:
 
 rsync -Cclrtvzn --log-format=%h %a %l %o %f %t %u %c /localdir 
 [EMAIL PROTECTED]:/remotedir

This is not an rsync issue.  It is a perl issue.

-- 

J.W. SchultzPegasystems Technologies
email address:  [EMAIL PROTECTED]

Remember Cernan and Schmitt
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html