Catch ctrl-c

2006-05-07 Thread SkyBlueshoes
I've tried to catch control-c using: $SIG{QUIT} = \got_sig_quit; Yet, my sub never gets executed, it's like the signal is being ignored. I'm using Activestate's Perl version v5.8.8 built for MSWin32-x86-multi-thread Binary build 816 [255195] provided by ActiveState I've read that Perl was

Re: Catch ctrl-c

2006-05-07 Thread Sisyphus
- Original Message - From: SkyBlueshoes [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Sent: Sunday, May 07, 2006 4:38 PM Subject: Catch ctrl-c I've tried to catch control-c using: $SIG{QUIT} = \got_sig_quit; Try catching it with: $SIG{INT} =

Re: Catch ctrl-c

2006-05-07 Thread $Bill Luebkert
SkyBlueshoes wrote: I've tried to catch control-c using: $SIG{QUIT} = \got_sig_quit; Yet, my sub never gets executed, it's like the signal is being ignored. I'm using Activestate's Perl version v5.8.8 built for MSWin32-x86-multi-thread Binary build 816 [255195] provided by ActiveState

Re: Catch ctrl-c

2006-05-07 Thread Veli-Pekka Tätilä
SkyBlueshoes wrote: I've tried to catch control-c using: $SIG{QUIT} = \got_sig_quit; Hi, I'm not sure why this is, as I'm not any good with signals in Unix, but I've learned somewhere to use the signal INT in stead for catching ctrl+c presses. Seems to work for me at least. Try the

RE: Guidance on how to get TCP bytes / packets sent received

2006-05-07 Thread Paul Sobey
Anyone have any guidance on how to determine the numbers of network (TCP) bytes and/or packets sent / received over a TCP interface from a Perl script (AS 5.8.8 build 817)? Is there some method to get this information from WMI (?) or some other internal / system level Windows XP

Re: Win32::OLE::Variant, perl crashing.

2006-05-07 Thread A. Pollock
Thanks Luke, SUPER. That's the one I was thinking about. Much better than nesting every last single call to Date() in an ungainly if/else statement. - Original Message - From: Luke Bakken [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Subject: Re:

Re: Catch ctrl-c

2006-05-07 Thread SkyBlueshoes
Sisyphus wrote: - Original Message - From: SkyBlueshoes [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Sent: Sunday, May 07, 2006 4:38 PM Subject: Catch ctrl-c I've tried to catch control-c using: $SIG{QUIT} = \got_sig_quit; Try catching it with:

Re: Catch ctrl-c

2006-05-07 Thread Chris Wagner
At 08:30 PM 5/7/2006 -0500, SkyBlueshoes wrote: Undefined subroutine threads::new called at C:\Documents and Settings\SkyBlueshoes\Desktop\SBIdent\sbidentd.pl line 84. Here is the area around my code: 83 close $client; 84 my $t = Thread-new(\Timer); 85 $t-detach; U should be