Re: *UPDATE* Binary writing to an input pipe and ASCII reading from an output one

2005-10-27 Thread Olivier Sessink
Colossus wrote: > The red bytes do not correspond to the written ones: > Bytes letti: 65536 Bytes scritti: 65536 > Bytes letti: 65536 Bytes scritti: 2015 > Bytes letti: 65536 Bytes scritti: 0 > Bytes letti: 65536 Bytes scritti: 0 > Bytes letti: 65536 Bytes scritti: 0 > Byt

Re: *UPDATE* Binary writing to an input pipe and ASCII reading from an output one

2005-10-25 Thread Colossus
Colossus wrote: Sometimes the console gives no output but the output of the command cpio (redirected in a GtkTextBuffer) is: cpio: warning: skipped 7099 bytes of junk cpio: warning: skipped 13776 bytes of junk cpio: warning: skipped 22769 bytes of junk cpio: warning: skipped 104333 bytes of ju

Re: Binary writing to an input pipe and ASCII reading from an output one

2005-10-24 Thread Colossus
Olivier Sessink wrote: what does that function do? I guess it calls g_spawn_async_with_pipes(), right? Yes. gulong SpawnAsyncProcess (const gchar *command , gboolean ExitStatusFlag , gboolean input_pipe) { GError *error = NULL; gchar **argv; int argcp; g_she

Re: Binary writing to an input pipe and ASCII reading from an output one

2005-10-24 Thread Olivier Sessink
Colossus wrote: > Hi, > > I'm trying without success to implement cat /tmp/file.cpio | cpio -tv > with g_spawn family and giochannels. My code is to use > "g_spawn_async_with_pipes" with both input and output pipes the "cpio > -tv" command and then I open in read mode the binary cpio archive (I >

Binary writing to an input pipe and ASCII reading from an output one

2005-10-24 Thread Colossus
Hi, I'm trying without success to implement cat /tmp/file.cpio | cpio -tv with g_spawn family and giochannels. My code is to use "g_spawn_async_with_pipes" with both input and output pipes the "cpio -tv" command and then I open in read mode the binary cpio archive (I don't spawn cat just use