From owner-freebsd-questions@FreeBSD.ORG Wed Oct 28 23:10:13 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DD7E1065692 for ; Wed, 28 Oct 2009 23:10:13 +0000 (UTC) (envelope-from jhall@socket.net) Received: from mf4.socket.net (mf4a.socket.net [216.106.48.198]) by mx1.freebsd.org (Postfix) with ESMTP id 4FFBA8FC15 for ; Wed, 28 Oct 2009 23:10:13 +0000 (UTC) Received: from [10.129.40.201] (216.106.12.14.reverse.socket.net [216.106.12.14]) by mf4.socket.net (Postfix) with ESMTP id 697D47D2F3 for ; Wed, 28 Oct 2009 18:10:12 -0500 (CDT) Message-Id: From: Jay Hall To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Wed, 28 Oct 2009 18:10:11 -0500 References: <20091022012543.489B810656AA@hub.freebsd.org> X-Mailer: Apple Mail (2.936) Subject: Re: gnu tar checkpoint variable expansion 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: Wed, 28 Oct 2009 23:10:13 -0000 > > Try this: > > /usr/local/gtar-1.22/bin/tar -cf - ${WHATTOBACKUP} \ > --checkpoint-action='echo=Checkpoint #%u' \ > --checkpoint-action="exec=/usr/local/scripts/check_disk_usage.sh $ > {DIR}" > > The use of single quotes prohibits the expansion of environment > variables. Use double qoutes instead. Thanks Trond, this did the trick. Jay