spawning a command like this: zip -z foo < foowhat with...

Stephan Arts stephan at xfce.org
Wed Jul 23 10:33:49 CEST 2008


On Wed, Jul 23, 2008 at 10:37 AM, Mike Massonnet <mmassonnet at gmail.com> wrote:
> On Wed, Jul 23, 2008 at 09:39:23AM +0200, Giuseppe Torelli wrote:
>> On Tue, Jul 22, 2008 at 11:42 PM, Daniel Morales <daniel at daniel.com.uy> wrote:
>> > Maybe you can use g_spawn_command_line_sync to execute that command
>>
>> Unfortunately it doesn't work. Any other idea?
>
> I come here a bit in a hurry, so I just throw my random guess: fork
> before running the command.  I think this should do it.

Sort of...

use: g_spawn_async_with_pipes (zip -z foo)

and write foowhat to the input_pipe...

Then it works.

Cheers,
Stephan



More information about the Xfce4-dev mailing list