delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Date: | Mon, 14 Aug 2006 09:54:21 -0400 |
From: | "Kenneth Nellis" <knellis AT syntek-usa DOT com> |
Subject: | RE: ssh breaks while loop |
In-reply-to: | |
To: | <cygwin AT cygwin DOT com> |
Message-id: | <017301c6bfa9$25180ff0$9d32000a@idirect.net> |
MIME-version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
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 |
FWIW, I see the same behavior, but not just Cygwin, but also on a Red Hat Linux installation, so I guess it's more of a bash/ssh issue than one with Cygwin. A workaround that works for me is the following: for host in $(<hostlist) do ssh $host ls -al .profile done -----Original Message----- From: CB [mailto:cbrown13800 AT hotmail DOT com] Sent: Friday, August 04, 2006 10:01 AM To: cygwin AT cygwin DOT com Subject: ssh breaks while loop If file hostlist contains: hosta hostb hostc then execute this shell script: while read host do ssh $host ls -al .profile done < hostlist the while loop executes one time and quits. But, while read host do echo $host done < hostlist executes 3 times. Am I missing something or is this a bug? -- 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 |