Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2005 15:25:27 +0200
From:      Emanuel Strobl <Emanuel.strobl@gmx.net>
To:        freebsd-questions@freebsd.org
Subject:   shell usage (syntax) question
Message-ID:  <200508271525.37192@harrymail>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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

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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQBDEGnRBylq0S4AzzwRAiW+AJ92ZkCteCZhqZayka9TCbWOmghtYQCgklNc
fOM8BMpOY8+uL5f6SggfQVI=
=ugTp
-----END PGP SIGNATURE-----

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