RE: Win32::Process Help Needed - Main Process Exits While Children Run

2009-03-11 Thread Jan Dubois
ActiveState.com Subject: Win32::Process Help Needed - Main Process Exits While Children Run I have a piece of code that has been running for a number of years, until now. My vendor changed the way they created a program, and that new program exits before its children's processes are fin

Win32::Process Help Needed - Main Process Exits While Children Run

2009-03-11 Thread Michael Cohen
uot;.")|| die print Win32::FormatMessage( Win32::GetLastError() ); while (!($done)) { $done = 1 if ($ProcessObj->Wait(100)); $main->update; # TK update } As noted above, the "Wait(100)" would work fine if the parent program does not exit prema

Re: urgent help : Error while installing Crypt::DES at Windows XP

2008-06-09 Thread Sisyphus
- Original Message - From: <[EMAIL PROTECTED]> . . C:\Perl\lib\CORE\perl.h(587) : fatal error C1083: Cannot open include file: 'sys/types.h': No such file or directory . - That's the (current) problem - the C headers aren't being found. With the v

RE: urgent help : Error while installing Crypt::DES at Windows XP

2008-06-09 Thread mohammed.mustafa
__ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tobias Hoellrich Sent: Friday, June 06, 2008 11:31 PM To: perl-win32-users@listserv.activestate.com Subject: RE: urgent help : Error while installing Crypt::DES at Windows XP Make sure that the location of

RE: urgent help : Error while installing Crypt::DES at Windows XP

2008-06-06 Thread Tobias Hoellrich
Subject: urgent help : Error while installing Crypt::DES at Windows XP Hi All, Getting error while installing Crypt::DES, I thought it is due to Microsoft VC++, and I installed it successfully but still I am getting

urgent help : Error while installing Crypt::DES at Windows XP

2008-06-06 Thread mohammed.mustafa
Hi All, Getting error while installing Crypt::DES, I thought it is due to Microsoft VC++, and I installed it successfully but still I am getting the below same error. C:\Documents and Settings\mukaa\Mustafa\ssh_files\Crypt-DES-2.05>nmake Microsoft (R) Program Maintenance Util

RE: How to make the passwd invisible while I'm typing the passwd atMS-DOS prompt on Windows?

2008-01-28 Thread Jack
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gary Yang Sent: January-28-08 10:28 AM To: perl-win32-users@listserv.ActiveState.com Subject: How to make the passwd invisible while I'm typing the passwd atMS-DOS prompt on Windows?

How to make the passwd invisible while I'm typing the passwd at MS-DOS prompt on Windows?

2008-01-28 Thread Gary Yang
Hi, The script bellow prompt user to enter login password. But, when I enter the passwd at prompt, it shows me the passwd I typed. How to make the passwd invisible while I'm typing the passwd? print "\nPlease Enter login passwd: "; chomp($passwd = ); I gre

Re: Hitting a line limit while reading a file

2007-03-14 Thread Bill Luebkert
ladimir Zelinski > Sent: Tuesday, March 13, 2007 7:48 PM > To: perl-win32-users@listserv.ActiveState.com > Subject: Re: Hitting a line limit while reading a file > > A while ago I had a weird problem on Perl for Windows. > My program exited from while() loop because of a characte

RE: Hitting a line limit while reading a file

2007-03-14 Thread Ken Cornetet
al Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vladimir Zelinski Sent: Tuesday, March 13, 2007 7:48 PM To: perl-win32-users@listserv.ActiveState.com Subject: Re: Hitting a line limit while reading a file A while ago I had a weird problem on Perl for Windows. My progr

Re: Hitting a line limit while reading a file

2007-03-13 Thread Bill Luebkert
> What kind of memory issue could I have hit? > This is a Windows 2000 box with 512 Meg of RAM. > > Code that was executing: > > open(INPUT,"$infilename") or die "couldn't open $infilename for read, stopped > at: $!"; > my $line_num; > whil

Re: Hitting a line limit while reading a file

2007-03-13 Thread Vladimir Zelinski
A while ago I had a weird problem on Perl for Windows. My program exited from while() loop because of a character in the data file which was treated as EOF. After removing the character from the data file loop continued up to the very end. I didn't have time to investigate the problem and I

Re: Hitting a line limit while reading a file

2007-03-13 Thread Sisyphus
- Original Message - From: "Howard Maher" <[EMAIL PROTECTED]> To: Sent: Wednesday, March 14, 2007 5:34 AM Subject: Hitting a line limit while reading a file >I was simply counting the number of lines in a 2 gig file, printing to >STDERR every 10,000 lines to in

Re: Tough qn: understanding this (C) error while using inline

2006-02-22 Thread Sisyphus
- Original Message - From: "Foo Ji-Haw" > It complains of 'error C2275: 'ULONG' : illegal use of this type as an > expression' > > Is that a MSVC issue, or more to do with inline.pm? It's an MSVC issue - that "illegal use", whi

Re: Tough qn: understanding this (C) error while using inline

2006-02-22 Thread Foo Ji-Haw
ort some old sample codes into Perl (the C++ Guy left). Thanks. Will keep you updated. Sisyphus wrote: - Original Message - From: "Foo Ji-Haw" <[EMAIL PROTECTED]> To: "Sisyphus" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, February 21, 2006 5:42 PM Sub

Re: Tough qn: understanding this (C) error while using inline

2006-02-21 Thread Reinhard Pagitsch
Hello, I think this is the compiler. If I use void StartupTapi (HINSTANCE hInstance) { //apiVersion = 0x2; ULONG ret; } than it compiles without an error. The same problem I had sometimes ago wit an modul of me. I have to define first all variables befor I use them. I use the "Micro

Re: Tough qn: understanding this (C) error while using inline

2006-02-20 Thread Sisyphus
- Original Message - From: "Foo Ji-Haw" <[EMAIL PROTECTED]> To: "Sisyphus" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, February 21, 2006 5:42 PM Subject: Re: Tough qn: understanding this (C) error while using inline > Hello guys, > > Loading the lib

Re: Tough qn: understanding this (C) error while using inline

2006-02-20 Thread Foo Ji-Haw
Hello guys, Loading the library helped. I think I've hit the problem you foresaw. ULONG returns an error during compilation: error C2275: 'ULONG' : illegal use of this type as an expression Is it to do with typemaps? I tried to find some good documentation, but the only example I got was: ht

Re: Tough qn: understanding this (C) error while using inline

2006-02-20 Thread Foo Ji-Haw
M Subject: Tough qn: understanding this (C) error while using inline Hi all, I'm trying my first hand at writing some C code to extend TAPI onto Perl using inline.pm. I didn't get very far though. Appreciate if anyone can help explain the error (source code is attached). Make

Re: Tough qn: understanding this (C) error while using inline

2006-02-20 Thread Sisyphus
- Original Message - From: "Reinhard Pagitsch" > > > Could it be because I use Perl v5.6.1? It worked the way I replayed. > If it works on 5.6.1, it probably also works on 5.8.x it just seems an odd way of going about it (to me). The '-L' switch is normally used to designate a dire

Re: Tough qn: understanding this (C) error while using inline

2006-02-20 Thread Reinhard Pagitsch
Sisyphus wrote: - Original Message - From: "Foo Ji-Haw" <[EMAIL PROTECTED]> To: Sent: Friday, February 17, 2006 7:54 PM Subject: Tough qn: understanding this (C) error while using inline Hi all, I'm trying my first hand at writing some C code to extend

Re: Tough qn: understanding this (C) error while using inline

2006-02-18 Thread Sisyphus
- Original Message - From: "Foo Ji-Haw" <[EMAIL PROTECTED]> To: Sent: Friday, February 17, 2006 7:54 PM Subject: Tough qn: understanding this (C) error while using inline > Hi all, > > I'm trying my first hand at writing some C code to extend TAPI onto Pe

Re: Tough qn: understanding this (C) error while using inline

2006-02-17 Thread mark pryor
--- Foo Ji-Haw <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm trying my first hand at writing some C code to > extend TAPI onto Perl > using inline.pm. I didn't get very far though. > Appreciate if anyone can > help explain the error (source code is attached). > > It seems to complain that _li

Re: Tough qn: understanding this (C) error while using inline

2006-02-17 Thread Reinhard Pagitsch
b\inline_pl_d3ab.lib and object blib\arch\auto\inline_pl_d3ab\inline_pl_d3ab.exp inline_pl_d3ab.obj : error LNK2001: unresolved external symbol _lineInitializeEx [EMAIL PROTECTED] blib\arch\auto\inline_pl_d3ab\inline_pl_d3ab.dll : fatal error LNK1120: 1 unreso lved externals NMAKE : fatal e

Tough qn: understanding this (C) error while using inline

2006-02-17 Thread Foo Ji-Haw
TED] blib\arch\auto\inline_pl_d3ab\inline_pl_d3ab.dll : fatal error LNK1120: 1 unreso lved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. A problem was encountered while attempting to compile and install your Inline C code. The command that failed w

RE: Win32::OLE : Bizarre Push while Examining IE Events

2005-02-23 Thread Jan Dubois
On Wed, 23 Feb 2005, Andrew McFarlane wrote: > I think that I'm seeing a but in the Win32::OLE::Lite::in method. [...] > How do I alert the powers that be about this potential defect? Can you send me a complete program that I can use to reproduce the problem? Cheers, -Jan

RE: Win32::OLE : Bizarre Push while Examining IE Events

2005-02-23 Thread Andrew McFarlane
blah } I do not get an exception. How do I alert the powers that be about this potential defect? Andrew McFarlane From: "Steven Manross" <[EMAIL PROTECTED]> To: "Kevin Carothers" <[EMAIL PROTECTED]>,"Andrew McFarlane" <[EMAIL PROTECTED]> CC

RE: Win32::OLE : Bizarre Push while Examining IE Events

2005-02-23 Thread Steven Manross
: Andrew McFarlane Cc: perl-win32-users@listserv.ActiveState.com Subject: Re: Win32::OLE : Bizarre Push while Examining IE Events Hi Andrew, I really don't know what's going on, but I have tried running MSAccess as an OLE automation server; you too are obviously running IE as an OLE

Re: Win32::OLE : Bizarre Push while Examining IE Events

2005-02-22 Thread Kevin Carothers
Hi Andrew, I really don't know what's going on, but I have tried running MSAccess as an OLE automation server; you too are obviously running IE as an OLE automation server. I hate it when people tell me something can't be done, but I really doubt that you can call events from a COM object via a

Win32::OLE : Bizarre Push while Examining IE Events

2005-02-20 Thread Andrew McFarlane
I need help in figuring out how to prevent an exception from occurring when I try to examine Internet Explorer browser events using Win32::OLE. Thanks in advance for your help. I have a library that allows one to drive Internet Explorer. My code runs well until I try to examine the window eve

Re: Unhandled exception while calling a DLL using Win32::API

2004-12-28 Thread Mikael Olenfalk
Thanks, using "i512" instead of "s512" in pack() solved this issue, however I'm not really sure this should be the case as s512 should have allocated 512 * 2 bytes and I expect the function to just write 2 bytes to this buffer. If you have any idea why this is the case, please let me know. /Mikae

Re: Unhandled exception while calling a DLL using Win32::API

2004-12-27 Thread $Bill Luebkert
Mikael Olenfalk wrote: > Hi! > > I''m trying to wrap a DLL using Win32::API and have succeeded for > simpler calls like: > > int Connect(int port); > > But this DLL has a function defined as follow: > > int MDIO_Read (int device, int address, int *result_vector); > > Where result_vector is ex

Unhandled exception while calling a DLL using Win32::API

2004-12-27 Thread Mikael Olenfalk
Hi! I''m trying to wrap a DLL using Win32::API and have succeeded for simpler calls like: int Connect(int port); But this DLL has a function defined as follow: int MDIO_Read (int device, int address, int *result_vector); Where result_vector is expected to a int result_vector[512] array in C. I

RE: While loop help

2004-07-16 Thread Charles K. Clarkson
ooking for. My second choice assumes all the web pages can fit in memory. Web pages are not especially large so this shouldn't be a problem. my %page; while ( my ( $year, $data ) = $sth->fetchrow_array ) { $page{ $year } .= "$year - $data"; } foreach my $year ( k

Re: While loop help

2004-07-16 Thread barons
No this does not seem right.. I've tried using the below but this still is not right? my %seen; while (($Year, $Data) = $sth->fetchrow_array) { my $key = $Year; print LIST "$top_template" unless $seen{$key}++; print LIST "$Year - $Data"; print LIST "$b

Blocking While Reading the Network

2004-04-13 Thread Darrell Gammill
ot;read: ",$buffer; ($message, $buffer, $done) = Sirsi::Utilities::DeChunk($buffer); #warn sprintf ("\n%s|%s|%s",$message, $buffer, $done); until ( $done ) { while ( length ($buffer) ) { ($rebuild, $buffer, $done) = Sirsi::Utilities::DeChunk($buffer);

Re: Why does while and sleep work this way

2003-07-30 Thread Sisyphus
- Original Message - From: "Mitch Raful" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 30, 2003 3:03 PM Subject: Why does while and sleep work this way Can someone explain why the following code works: #!C:\Perl\bin\Perl.exe require

Re: Why does while and sleep work this way

2003-07-29 Thread $Bill Luebkert
Mitch Raful wrote: > Can someone explain why the following code works: > > #!C:\Perl\bin\Perl.exe > require disk_perflib; > > while(1) { >sleep(5); >print "\n"; >printf "%.0d\%", disk_perflib::GetDisk(); > } > But if I

Why does while and sleep work this way

2003-07-29 Thread Mitch Raful
Can someone explain why the following code works:   #!C:\Perl\bin\Perl.exerequire disk_perflib;   while(1) {   sleep(5);   print "\n";   printf "%.0d\%", disk_perflib::GetDisk();} But if I remove the print "\n"; it won't work.  However, I can substitute b

RE: Hiding STDIN (keyboard) while typing

2003-03-20 Thread Thomas, Mark-BLS CTR
TECTED] > Sent: Thursday, March 20, 2003 4:00 PM > To: [EMAIL PROTECTED] > Subject: Hiding STDIN (keyboard) while typing > > > Good Day All, > I was wondering if anyone has previously run a Perl > script that hides the STDIN from being printed to the STDOUT > (cons

RE: Hiding STDIN (keyboard) while typing

2003-03-20 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Gregory, Carlton wrote: > Good Day All, > I was wondering if anyone has previously run a Perl script that > hides the STDIN from being printed to the STDOUT (console window) > while typing? > > As in when getting prompted for a password. > > Is there a Console mod

Hiding STDIN (keyboard) while typing

2003-03-20 Thread Gregory, Carlton
Good Day All, I was wondering if anyone has previously run a Perl script that hides the STDIN from being printed to the STDOUT (console window) while typing? As in when getting prompted for a password. Is there a Console module maybe Win32::Console? Thanks in advance for your time and

Another Net::Telnet question while we are on the subject!

2003-03-04 Thread John Drabinowicz
Title: Another Net::Telnet question while we are on the subject! Hi all, I was just wondering about this: I use Net::Telnet to send a command that takes anywhere from 3 to 10 minutes to complete. Is there some way to create some activity indication while the command is out doing its

Re: While

2002-10-31 Thread Carl Jolley
On Wed, 30 Oct 2002, Cristian Carvajal wrote: > I have a question regarding to an aplication I am working on with an ulimited >while cicle > > While (1) { > #code > > } > > This cicle keeps asking until one of the exit functions appears to finish the cicle. >

Re: While

2002-10-30 Thread Alan Dickey
> I have a question regarding to an aplication I am working on > with an ulimited while cicle > > While (1) { > #code > > } > > This cicle keeps asking until one of the exit functions > appears to finish the cicle. > > My problem is that the cicle cons

RE: Errors while using "perlcc"

2002-10-30 Thread Rajendra Babu, Praveen
- From: Carl Jolley [mailto:cjolley@;iac.net] Sent: Thursday, 31 October 2002 2:00 AM To: Rajendra Babu, Praveen Cc: '[EMAIL PROTECTED]' Subject: Re: Errors while using "perlcc" On Wed, 30 Oct 2002, Rajendra Babu, Praveen wrote: > Hello All, > I am on Windows &#x

While

2002-10-30 Thread Cristian Carvajal
I have a question regarding to an aplication I am working on     with an ulimited while cicle   While (1) {#code   }   This cicle keeps asking until one of the exit functions appears to finish the cicle.   My problem is that the cicle consumues 100% of the CPU's resources, making t

Printing to browser while waiting for Net Telnet to releasecontr ol

2002-07-04 Thread Sundara Rajan
Hi I have a Perl script that runs as CGI and uses Net::Telnet to connect to a UNIX machine and execute a set of tasks. The system works except that the user has to wait for the some time for the browser to show up something (it waits till the control is returned from the Telnet process) . Part of

Re: multitasking - listening to a socket while remaining interactive or doing other tasks

2002-02-18 Thread Torsten Förtsch
t's the best to poll the socket. Something like that: # the handler use IO::Select; use vars qw/*LISTENING_SOCKET/; sub acceptor { my $sel=IO::Select->new( *LISTENING_SOCKET ); while( $sel->can_read(0) ) { # accept connection and handle request } } $widget->repeat( $poll

Re: multitasking - listening to a socket while remaining interactive or doing other tasks

2002-02-17 Thread $Bill Luebkert
John V. Pataki wrote: > I am trying to write an perl/Tk application that will allow user > interaction while at the same time monitoring a socket for other apps > that want to talk to it. > > I seem to be able to do either or... > > > > I can write a simple ser

RE: multitasking - listening to a socket while remaining interactive or doing other tasks

2002-02-17 Thread Toby Stuart
of course, when one of the two modules is actively working on something, the other one will be freezed. so while you're trasferring data over the IRC channel, the GUI will hang up, and while you're doing something on your window, the IRC communication will be paused. this is subopti

multitasking - listening to a socket while remaining interactive or doing other tasks

2002-02-17 Thread John V. Pataki
I am trying to write an perl/Tk application that will allow user interaction while at the same time monitoring a socket for other apps that want to talk to it. I seem to be able to do either or...   I can write a simple server to listen to the socket as in the example below   (examples

Re: Printing to a file while socket is open..

2001-05-31 Thread $Bill Luebkert
Craig S Monroe wrote: > > Hello All, > > I am a newbie to the list and have a question. I have searched for an answer > through the > docs, but cannot seem to locate a resolution. > > I have written a script that opens a socket to a particular device, > and issues it commands. I would then lik

RE: logic problems in while loop resend

2001-05-10 Thread Mike Prozinski
inventory for $item is $old{$item}\n"; } print "\n\n"; foreach $item (sort keys(%new)){ print "new inventory for $item is $new{$item}\n"; } ___ Michael Prozinski Interautomation, Inc. email=> [EMAIL PROTECTED] Dearborn =>

RE: logic problems in while loop resend

2001-05-10 Thread Jean-Paul Felix
nd observations appreciated. jpf while () { # read in old file line at a time chomp; for ($a1 = substr($_,1,12)) {s/^\s+//;s/\s+$//} while () { # find line in new file $found=0; for ($b1 = substr($_,0,12)) {s/^\s+//;s/\s+$//} if ($a1 eq $b1) { $found=1;

Re: Orphan Process While Using Textpad

2001-04-08 Thread Andy Jennings
ked. HTH Andy - Original Message - From: "James E Keenan" <[EMAIL PROTECTED]> To: "Perl-Win32-Users" <[EMAIL PROTECTED]> Sent: Sunday, April 08, 2001 8:46 PM Subject: Orphan Process While Using Textpad > This question is for anyone who uses Textpad as his/her text

Orphan Process While Using Textpad

2001-04-08 Thread James E Keenan
This question is for anyone who uses Textpad as his/her text editor when writing and testing Perl. Generally speaking, I like Textpad a lot, particularly its ability to do a "Tools/Run ..." and run Perl from within the program (including the -c and -d flags). But I find it can't handle standard

Re: Getting "More" while in the debugger

2001-01-23 Thread Scott D Friedemann
From: "Jonathan D Johnston" <[EMAIL PROTECTED]> Subject: Re: Getting "More" while in the debugger > > Hi Scott, > > When I couldn't page with "more", I would redirect the output to a > file. For example to dump %ENV to a file: >

Re: Getting "More" while in the debugger

2001-01-19 Thread Scott D Friedemann
> > > Scott D Friedemann wrote: > > > > Some hashes, e.g., %ENV, have more entries than fit on one screen. How can > > I view the output of a command like: > > > > DB<1> X ENV > > > > one screen at a time? > > > > The man page says > > > > |dbcmd > > Run the debugger command, piping DB::OU

Re: Getting "More" while in the debugger

2001-01-19 Thread Joe Schell
Scott D Friedemann wrote: > > Some hashes, e.g., %ENV, have more entries than fit on one screen. How can > I view the output of a command like: > > DB<1> X ENV > > one screen at a time? > > The man page says > > |dbcmd > Run the debugger command, piping DB::OUT into your current pager.

RE: while loop and DBI

2000-11-24 Thread Ron Hartikka
Have you run the code without doing anything with DBI in the while or foreach? That is, why blame the DBI? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan Jablonsky Sent: Friday, November 24, 2000 11:48 AM To: [EMAIL PROTECTED] Subject: while loop

RE: while loop and DBI

2000-11-24 Thread Gregory_Griffiths
Dan, can you provide some source code please, as there are loads of possible problems. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 24 November 2000 16:48 > To: [EMAIL PROTECTED] > Subject: FW: while loop and DBI > >

Perl56.dll crashing while passing arguments from Win32::API

2000-10-26 Thread Vandana Gopal
Hi, I recently downloaded perl from ActiveState and got Win32::API by PPM. I am trying to call a function in my own DLL I created. Every time I try to pass arguments perl56 crashes even if it is only a single integer. It seems to call system DLLs like kernel32 just fine with arguments but not my