Java Mailing List Archive

http://www.redhatconfig.com/

Home » Ubuntu Technical Support »

bash strerr pipe problem - workaround ?

dave selby

2008-06-14

Replies:

Author LoginPost Reply
Hi all,

I have a app that outputs to stderr, what I need is a filtered version
to be saved in a file

motion -c %s/core/motion_conf/motion.conf 2> saved

works as expected but is unfiltered. So to filter it I am trying ...

motion -c %s/core/motion_conf/motion.conf | grep -E 'error|not found' > saved

and I get zip. I am thinking because stderr gets dumped to screen and
not processed by the pipe

motion is continuously running so I cannot use motion -c
%s/core/motion_conf/motion.conf 2> saved
then filter the output, it has to be an ongoing process.

Any ideas how to get around this ?

Dave



--

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

--
ubuntu-users mailing list
ubuntu-users@(protected)
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.