From owner-freebsd-questions@FreeBSD.ORG Sat Jun 5 16:27:10 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 961241065674 for ; Sat, 5 Jun 2010 16:27:10 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4F3758FC08 for ; Sat, 5 Jun 2010 16:27:09 +0000 (UTC) Received: by gyh20 with SMTP id 20so2059780gyh.13 for ; Sat, 05 Jun 2010 09:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=9ePMuGJscO+f0Nbgvaci3wfWmcKz888hJRYHsuwB9dE=; b=qIxoYq6tA4uQA3iiYyNITsjdxdRBa5ZmZ4UIWo6S0uhWBK1p9Zqfgu4DR7lu2uZwxI +CMmh+837C9RlLTy3fT529C7xnxxwYcSDYEYudOEZlptk1SIPD/78CHz7W7GfCvANT+A 4253KWvaE/j3nncPuA3c//nC/RR9iIStcFjy8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=UM9dAIqIy2z6Vt9AvVhNV9MlyvYIW1xN4F5DjP/FEZn4z4V9YFaXJKdiXm9q7CJQky +8Za5CRAuGgcbXlNrxbmRyE4kDjWUtWCwkloBFmD9uMFAF+7wPlTPX+JrnoDAHjKzLKN O9rUYnnsrrUp6blESnWKXBPea23ShfKwrB468= MIME-Version: 1.0 Received: by 10.90.224.5 with SMTP id w5mr2366506agg.121.1275755229416; Sat, 05 Jun 2010 09:27:09 -0700 (PDT) Received: by 10.90.84.19 with HTTP; Sat, 5 Jun 2010 09:27:09 -0700 (PDT) In-Reply-To: <20100603151125.GA44719@libertas.local.camdensoftware.com> References: <4C070621.5060109@comclark.com> <20100603134212.f1b9b1c0.freebsd@edvax.de> <20100603151125.GA44719@libertas.local.camdensoftware.com> Date: Sat, 5 Jun 2010 12:27:09 -0400 Message-ID: From: "illoai@gmail.com" To: "questions@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: .sh & tar X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2010 16:27:10 -0000 On 3 June 2010 11:11, Chip Camden wrote: > On Jun 03 2010 10:03, illoai@gmail.com wrote: >> On 3 June 2010 07:42, Polytropon wrote: >> > On Thu, 03 Jun 2010 09:32:17 +0800, Aiza wrote: >> >> When I exec tar from within a .sh shell script I get this message >> >> tar: Removing leading '/' from member names >> >> I have tar outputting to > /dev/null and still get this message. >> >> With -v or without makes no difference. >> >> >> >> How can I stop this >> > >> > Depends on WHAT you want to stop - the illness or just its symptoms. := -) >> > >> > If it's just about symptoms, redirect the error messages into >> > nirvana. >> > >> > =A0 =A0 =A0 =A0tar [opts] [file] 1>/dev/null 2>&1 >> > >> > If you want to remove the REASON for "tar: Removing leading '/' >> > from member names", you need to re-create the archives and >> > start archiving from a relative point (instead of from an >> > absolute one), e. g. >> > >> > =A0 =A0 =A0 =A0# cd / >> > =A0 =A0 =A0 =A0# tar cvf etc.tar etc/ >> > >> > (lazy man's method) instead of >> > >> > =A0 =A0 =A0 =A0# tar cvf etc.tar /etc/ >> > >> > The extraction of the archive will usually start in the >> > current directory, so >> > >> > =A0 =A0 =A0 =A0# cd /usr/local/bin >> > =A0 =A0 =A0 =A0# tar xvf etc.tar >> > >> > won't give you an etc/ subtree in /usr/local/bin directory. >> > >> >> tar -cvf - ./ -C / > /dev/null >> ? >> > I can't help wondering why the 'v' option is being specified, unless > /dev/null needs more playing time. Reflex, but you're right, it shouldn't be in there. --=20 --