Re: Tar process not dying after user hits "stop"

[prev] [thread] [next] [Date index for 2004/12/13]

From: Mike Cardwell
Subject: Re: Tar process not dying after user hits "stop"
Date: 00:57 on 13 Dec 2004
On Sun, 12 Dec 2004, Stas Bekman wrote:

>> # Get the content-length:
>> my( $command ) = "/bin/tar -c -h -f /dev/null --totals the_directory 
>> 2>&1"=~/^(.+)$/;
>> `$command` =~ /Total bytes written: (\d+)/gsm;
> You probably better off not using an external process, but
> http://search.cpan.org/dist/Archive-Tar/ instead.

Cpan was my first port of call. Archive::Tar doesn't seem to be able to do 
what I want though.

>> The problem is, when someone hits stop in their web browser and ends the 
>> transfer prematurely, the tar command doesn't die like I'd hoped it would. 
>> I'm assuming here that I'm missing something basic in my knowledge of how 
>> modperl works...
> This is normal, please read:
> http://perl.apache.org/docs/1.0/guide/debug.html#Handling_the__User_pressed_Stop_button__case

Yeah. I fixed it with Apache::SIG a couple of hours after mailing the 
list, and several hours before the mail actually got onto the list. ;)

        -- 
        Digital photo printing:
http://www.fotoserve.com/?affiliate_id=1093871459

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Tar process not dying after user hits "stop"
Mike Cardwell 16:11 on 12 Dec 2004

Re: Tar process not dying after user hits "stop"
Mike Cardwell 00:57 on 13 Dec 2004

Re: Tar process not dying after user hits "stop"
Steven Lembark 06:11 on 13 Dec 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52