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
--nextPart1245363.23vvF32nzt
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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=20
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=
=20
shell sees the ">"? (sh, but also interesting for csh)

Thanks in advance!

=2DHarry

--nextPart1245363.23vvF32nzt
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

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

--nextPart1245363.23vvF32nzt--



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