From owner-freebsd-questions@FreeBSD.ORG Wed Oct 21 13:44:44 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 73BA9106566C for ; Wed, 21 Oct 2009 13:44:44 +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 55AAC8FC0A for ; Wed, 21 Oct 2009 13:44:43 +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 D632878DBA for ; Wed, 21 Oct 2009 08:44:42 -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, 21 Oct 2009 08:44:41 -0500 X-Mailer: Apple Mail (2.936) Subject: 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, 21 Oct 2009 13:44:44 -0000 Ladies and Gentlemen, I am working with gnu tar checkpoints this morning can cannot seem to get variables to expand properly when they are passed as part of a checkpoint action. Following is how I am using gnu tar DIR="/home/test" WHATTOBACKUP="/home/somedir" /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}' When I use ${DIR} as a parameter, it is not sent to the check_disk_usage_script. However, if I replace ${DIR} with /home/ test, everything works fine. Any suggestions anyone has would be greatly appreciated. Thanks, Jay