rsync question

R Kimber richardkimber at btinternet.com
Sun Nov 2 20:55:41 UTC 2014


On Mon, 03 Nov 2014 00:14:12 +1100
Karl Auer wrote:

> On Sun, 2014-11-02 at 12:35 +0000, R Kimber wrote:
> > Is there a way of suppressing the "ignoring unsafe symlink" warnings,
> > while not suppressing real errors?
> 
> Yes. Pipe the output from rsync into grep:
> 
>    rsync .... 2>&1 | grep -v "ignoring unsafe symlink"
> 
> Regards, K.

Thanks.  I'll try that.

But if I do [ $? -ne 0 ] is it rsync or grep that returns the value?

- Richard
-- 
Richard Kimber





More information about the ubuntu-users mailing list