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

Howto update $statusbar from fork() proces



I'm writing a program in Perl/gtk and an wondering how to update a,statusbar
integrated in the Gui while downloading multiple files from the net in a
forked proces.
I want to see what pages I'm downloading.
Something like (just example code);

use LWP::Simple;
my $pid
if ($pid=fork())
{ 
    foreach $url (@urls) 
        {
         $page=get ($url);
        $statusbar->push(1, "downloading $url");
         }
    exit(1);
}
Some construction does'nt seem to work.

Newbie at work
lucA@mail.dma.be




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