Advanced shell scripting question :-)
Derek D. Martin
ddm+gnhlug at pizzashack.org
Thu Sep 5 13:43:12 EDT 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At some point hitherto, Steven W. Orr hath spake thusly:
> This is actually even closer to what I want. The problem is now strictly
> that the output into both is not coming out in the same order as what
> appears on the screen.
>
> p 2>&1 3> >(tee err 1>&2) 2>&3 | tee both
BTW, this syntax is, AFAICT, bash-specific. There appears to be no
mention of it in the man pages for sh-bourne, sh-posix, or ksh on my
HP-UX system... nor in my shell programming book. And indeed, it
produces a syntax error in all of those shells.
- --
Derek Martin ddm at pizzashack.org
- ---------------------------------------------
I prefer mail encrypted with PGP/GPG!
GnuPG Key ID: 0x81CFE75D
Retrieve my public key at http://pgp.mit.edu
Learn more about it at http://www.gnupg.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9d5evdjdlQoHP510RAoxJAKC2vPyDuuausefdSzWpMkg/wdFODgCgkeNW
C6eEYJxm3pbu503AnpRSqBg=
=Gdal
-----END PGP SIGNATURE-----
More information about the gnhlug-discuss
mailing list