Quote:
> How can stderr be redirected to stdio?
huh? stdio? You mean stdout? Both of those are predefined constants in
<stdio.h>, and are therefore only useful in C programs.
Now, can you tell me what you really want?
1 - You have a Perl program, and you want to redirect its STDERR output
to its STDOUT,
a - in the program
i. - with minimal code changes
ii. - by rewriting it so it's easier to manage in the future
b - from the command line when you run the program,
i. - on a Unix variant
a. - in a sh derivative shell
b. - in a csh derivative shell
c. - in some other shell
ii. - on a MS Win* machine
iii. - on VMS
iv. - on a Mac
v. - somewhere else
2 - You are running an external program from perl with system,
backticks or qx//, and you want to capture its output to standard
output as well as standard error.
Some of these are actually answered in the FAQ, some others can be
distilled from the documentation, and some others are really not a
perl problem, but a lack of familiarity with your shell/environment.
There are too many answers here, so I won't even try to answer until
you have asked a question which is unambiguously interpretable.
Martien
--
Martien Verbruggen |
Interactive Media Division | In the fight between you and the world,
Commercial Dynamics Pty. Ltd. | back the world - Franz Kafka
NSW, Australia |