From owner-freebsd-questions@FreeBSD.ORG Sat Aug 27 20:19:04 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52EBB16A41F for ; Sat, 27 Aug 2005 20:19:04 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from cobalt.antimatter.net (cobalt.antimatter.net [69.55.224.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BFBC43D46 for ; Sat, 27 Aug 2005 20:19:04 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from glenn-mobile.antimatter.net (cpe-66-27-86-22.san.res.rr.com [66.27.86.22]) (authenticated bits=0) by cobalt.antimatter.net (8.13.4/8.13.4) with ESMTP id j7RKJ2uf001742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 27 Aug 2005 13:19:03 -0700 X-MailKey: purple frogs are falling from the sky Message-Id: <6.2.3.4.2.20050827131701.05aca170@cobalt.antimatter.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Sat, 27 Aug 2005 13:19:04 -0700 To: Emanuel Strobl , freebsd-questions@freebsd.org From: Glenn Dawson In-Reply-To: <200508271525.37192@harrymail> References: <200508271525.37192@harrymail> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: shell usage (syntax) question 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, 27 Aug 2005 20:19:04 -0000 At 06:25 AM 8/27/2005, Emanuel Strobl wrote: >Hello, > >how can I delimit a program parameter from a shell instruction? >Example: I want to tell the shell that stderr should be redirected to >file /tmp/test, not cpio to use /file/test: > ># /usr/bin/cpio -idmuv < /dev/ad0h 2> /tmp/test In sh try: /usr/bin/cpio -idmuv 2> /etc/test < /dev/ad0h -Glenn >This doesn't work, I guess cpio grabs the ">". How can I write it that the >shell sees the ">"? (sh, but also interesting for csh) > >Thanks in advance! > >-Harry >