Re: Implementing "cpio -tv < file.cpio" with glib routines
- From: "Colossus" <colossus 3000 it>
- To: "Olivier Sessink" <lists olivier pk wau nl>, "Colossus" <colossus 3000 it>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Implementing "cpio -tv < file.cpio" with glib routines
- Date: Sun, 16 Oct 2005 13:20:22 +0200
--------- Messaggio originale --------
Da: Olivier Sessink <lists olivier pk wau nl>
1) spawn 'cpio -tv' with a pipe in and a pipe out
2) create non-blocking g_io_channels from these pipes
3) register callbacks with g_io_add_watch() for the io channels, one of
these functions should write, the other one read
Thank you, but about the cat command ? cpio -tv alone doesn't work because it needs the input from a piped
command. Shall I spawn both ? If so what about the channels ?
you might want to look at 'external_commands.c' from the Bluefish source
code, it can process data through external commands, using pipes, fifo's
or temporary files.
Thanks for the info, I will do it !
Colossus
________________________________
L'email piщ cool del web?
tu @3000.it ! Fatti subito la tua mail, и gratis! http://mail.3000.it
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]