home *** CD-ROM | disk | FTP | other *** search
-
-
- > I would like to redirect the standard error of a process I start from
- > within Emacs into one buffer while the standard output goes into
- > another buffer. The output and error both look fairly identical, so
- > there is no way to filter the process output and do the separation
- > myself. It seems like there should be some way of doing what I want,
- > but I have been completely unable to figure it out.
-
- I think that this is non-trivial since the C code only opens a single
- pipe or pty to the child. However would it suffice to send std{out,err}
- to two files then read those ?
-
- eg (in sh or bash, not csh, don't know about ksh)
-
- some-command 1>stdout 2>stderr
-
- (in csh (I think - it's been a long time...))
-
- (some-command > stdout) >& stderr
-
- You could wrap this up in some lisp so that you have a function which just takes
- the command string & two buffer names.
-
- --
- Paul Flinders Mail: ptf@delcam.co.uk
- Delcam International PLC. Tel: +44 21 766 5544 Fax: +44 21 766 5511
-
-
-