[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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                 |
crumley@belka.space.umn.edu |

Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null

Reply to: