Re: using pipes with g_spawn_command_line_sync



Luka Napotnik wrote:
I am unable to run a command with g_spawn_command_line_sync() that uses
pipes. For example "echo \"bla\" | wc -l" gives the exact output as the
command insted "1". Other commands without the pipe execute with no
problem. What's the problem?

see file rpm.c from xarchiver sources.

--
Colossus
Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org
Xscreencast, a DE independent desktop session recorder - http://xscreencast.berlios.de
Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net



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