Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Sep 2008 08:15:04 +0200 (CEST)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        jhall@vandaliamo.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Capturing tar output
Message-ID:  <20080911081428.Q11077@wojtek.tensor.gdynia.pl>
In-Reply-To: <50349.66.84.183.146.1221097271.squirrel@admintool.trueband.net>
References:  <53798.66.84.183.146.1221048972.squirrel@admintool.trueband.net> <20080910211651.Q48125@wojtek.tensor.gdynia.pl> <50349.66.84.183.146.1221097271.squirrel@admintool.trueband.net>

next in thread | previous in thread | raw e-mail | index | archive | help
no space between 2 and >

with space you started
/usr/local/gtar/bin/tar -cvf - /home/hallja 2

and redirected stdout to /var/log/test.txt

while trying to pipe the output too to gpg


On Thu, 11 Sep 2008, jhall@vandaliamo.net wrote:

>>
>> redirect stderr with "2>" operator
>>
> Using the following command,
> # /usr/local/gtar/bin/tar -cvf - /home/hallja 2 > /var/log/test.txt |
> /usr/local/bin/gpg --encrypt "recipient" | dd of=/dev/nsa0 obs=128k
>
> I receive an error meesage stating, "Ambiguous output redirect."
>
> Any additional suggestions would be appreciated.
>
> Thanks for all your help.
>
>
> Jay
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080911081428.Q11077>