Re: SHELL: duping stdout and stderr to another file
> Hi all
> I would like to know _how to copy_ (not start a new shell, eg: script)
> stdout and stderr _from a shell script_ to a file. Also It is interesting
> for me if there is a way to stop copying stdout and stderr...
> Thanks in advance,
Take a look at the tee command. Its in the package
With tee you should be able to redirect stderr to stdout
(for whatever shell you are using) and then use tee to
copy stdout to a file.
Jim Crumley |
Unsubscribe? mail -s unsubscribe firstname.lastname@example.org < /dev/null