| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <5084194.post@talk.nabble.com> |
| Date: | Wed, 28 Jun 2006 06:22:42 -0700 (PDT) |
| From: | prz <Guy DOT Przytula AT riziv DOT fgov DOT be> |
| To: | cygwin AT cygwin DOT com |
| Subject: | loop hanging |
| MIME-Version: | 1.0 |
| X-Nabble-Sender: | Guy DOT Przytula AT riziv DOT fgov DOT be |
| X-Nabble-From: | prz <Guy DOT Przytula AT riziv DOT fgov DOT be> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
I have a small program that executes a command and parses the output
I can see that on many executions the program hangs.
added some debug statements and could see it is at loop iteration that we
hang
sample code
#!/cygdrive/c/Cygwin/bin/bash
db2 list db directory | {
while read DBREC
do
[[ ! -z $DEBUG ]] && echo "p6"
statements....
[[ ! -z $DEBUG ]] && echo "p5"
done
}
the last output before hang is always p5
Any idea/hint why this is occuring ?
The executed command returns many lines.
Best Regards, Guy Przytula
--
View this message in context: http://www.nabble.com/loop-hanging-tf1861486.html#a5084194
Sent from the Cygwin Users forum at Nabble.com.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |