From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e0b57b8ca179dee6,start X-Google-Attributes: gidfee84,public From: Jay Olson Subject: Re: TAR Date: 1996/09/16 Message-ID: <323DC23F.7FA7DE27@triton.com>#1/1 X-Deja-AN: 181039721 references: <51l690$286@uuneo.neosoft.com> to: mred@neosoft.com content-type: text/plain; charset=us-ascii organization: Triton Software Group Ltd. mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.02b5 (X11; I; DEC 3000 - M600 ) mred@neosoft.com wrote: > > On tar I want to exclude some files which I do not even have read permission > on. So, I have something similar to: > > tar -cvf arc.tar -e ./quota.user -e ./quota.group -C /mydir . > > The problem is that tar is still showing me "Permission denied" on these > files, even though I've told it to exclude them. My exclusion works on other > files, specifically, ones I have group access to. > > The reason I need tar to be totally silent is because I want to cron it, and > even redirecting tar to /dev/null does not quiet it. So, I get stuck with > mail every day. > > It seems strange that tar would check files which I told it to exclude. > > -Ed- > mred@neosoft.com > http://www.neosoft.com/~mred/ In order to silence cron, I believe you have to redirect both stdout and stderr. In sh, the syntax is command args >output 2>&1 -- - Jay Olson (jjo@triton.com) Triton Software Group Ltd.