Re: Implementing "cpio -tv < file.cpio" with glib routines



Colossus wrote:
--------- 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.

if you have the data in memory:
use g_spawn to pipe the data to cpio

regards,
        Olivier



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