X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_05,SPF_PASS X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Solving a problem with typeperf.exe Date: Tue, 14 Jul 2009 18:53:23 -0500 Message-ID: <9D22EDA95B717C428B04F60A8272CFEC045CC2CD@mtelmy51.marcatel.ad> From: "Walter Roeland" To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com After normal startup of bash, the following command hangs after printing the header row: $ typeperf '\Processor(_Total)\% Processor Time' -si 1 -sc 2 -- Solution: insert 'chcp 1252' in cygwin.bat before calling bash.exe: -- cygwin.bat begin -- @echo off chcp 1252 chdir /d E:\cygwin\bin bash --login -i -- cygwin.bat end -- When bash (or another shell) is started after executing 'chcp 1252', the typeperf command works appropriately. Regards. -------------- Walter Roeland -- 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