On Tue, 05 Sep 2000, Peter Loo wrote:
>
>
>Hi,
>
>I am trying to use rsync in a CGI program to show a list of files that
>require update on a remote server.  It appears to work fine, but I would
>like to shut off the last two lines that gives the status information.  I
>have tried using "-q" to put it in quite mode, but then I don't get
>anything.  I am not using "-v" so I don't know what is causing it to show
>this information.  Here is my command that I am using:
>
>$switches = "-gHloprtn";
>
>    $rsync = "/usr/local/bin/rsync -e ssh --delete
>$switches --rsync-path=/usr/bin/rsync --exclude=pcdata/tmp --exclude=vssver.
>scc --exclude=.htaccess $srcDir $destHost{$host}:$destDir 2>&1 |";
>
>a.. cvs:building file list ... done
>b.. cvs:FOLDER.GIF
>c.. cvs:HTMLFILE.GIF
>d.. cvs:bottom.html
>e.. cvs:crew_survey.pl
>f.. cvs:maillist.pl
>g.. cvs:sendpass.pl
>h.. cvs:skinChoose.pl
>i.. cvs:skinCommon.pl
>j.. cvs:skinEnlargedView.pl
>k.. cvs:skinGenerateCategoryOptions.pl
>l.. cvs:skinModifyForm.pl
>m.. cvs:skinModifyLogin.pl
>n.. cvs:skinSubmitForm.pl
>o.. cvs:skinVerify.pl
>p.. cvs:skinViewer.pl
>q.. cvs:submitSuggestion.pl
>r.. cvs:submitSuggestions.pl
>s.. cvs:suggest.pl
>t.. cvs:top.html
>u.. cvs:wrote 796 bytes read 92 bytes 355.20 bytes/sec
>v.. cvs:total size is 237225 speedup is 267.15

I suppose you also want to get rid of the "building file list" line. So pipe it
through "eat|tac|eat 2|tac". 

phma

Reply via email to