Solving a problem with typeperf.exe

Walter Roeland wroeland@marcatel.net
Wed Jul 15 09:18:00 GMT 2009


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



More information about the Cygwin mailing list