public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* can't break out of perl script during execute()
@ 2017-04-21 19:18 Nellis, Kenneth (Conduent)
  0 siblings, 0 replies; 2+ messages in thread
From: Nellis, Kenneth (Conduent) @ 2017-04-21 19:18 UTC (permalink / raw)
  To: cygwin

I have a perl script that reads a (large) log file, searches for records 
matching a certain pattern, and execute()s a binary passing in to it data 
from the matched log record. Works great, except that I can't CTRL-C to 
break out when the perl script is executing the binary, which is where it 
is most of the time, so it's hard to catch it between calls to execute().
I built the binary with Cygwin's gcc. Wondering if this is a Cygwin issue 
and if there's a known workaround.

$ uname -svr
CYGWIN_NT-6.1 2.8.0(0.309/5/3) 2017-04-01 20:47
$ perl --version

This is perl 5, version 22, subversion 3 (v5.22.3) built for cygwin-thread-multi

Copyright 1987-2017, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

$ gcc --version
gcc (GCC) 5.4.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$

--Ken Nellis

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: can't break out of perl script during execute()
@ 2017-04-21 21:59 Nellis, Kenneth (Conduent)
  0 siblings, 0 replies; 2+ messages in thread
From: Nellis, Kenneth (Conduent) @ 2017-04-21 21:59 UTC (permalink / raw)
  To: cygwin

From: Nellis, Kenneth (Conduent)
> I have a perl script that reads a (large) log file, searches for records
> matching a certain pattern, and execute()s a binary passing in to it data
> from the matched log record....

This message was sent prematurely. Please disregard. Apologies.

--Ken Nellis


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-21 18:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-21 19:18 can't break out of perl script during execute() Nellis, Kenneth (Conduent)
2017-04-21 21:59 Nellis, Kenneth (Conduent)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).