Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Something is broken in build 15

May
13,402
190
This should happen.

Code:
v:\> sv
Start  Time             Pid       CPU(s)     WS(M)  Name
--------------------------------------------------------------------------------
12/04  02:46:04.970    9080        1.359      15.5  SecurityHealthService
12/04  02:46:07.550    9148        0.016      23.0  Appinfo
12/04  02:47:43.009   10220        5.578     134.6  IAStorDataMgrSvc
12/04  02:47:43.443    8184        6.844       8.4  SgrmBroker
12/04  02:47:43.599    9092        2.797      34.4  StorSvc
12/04  02:47:43.740    2596        0.047       5.1  w32tmsvc
12/04  02:47:43.751    2348        0.109       9.0  wscsvc
12/05  15:24:24.503     912        1.188      66.1  WpnUserService_23e9dea
12/05  15:24:24.961    1660        0.781      54.4  cbdhsvc_23e9dea
12/06  02:56:09.324    4152      366.750     270.0  WinDefend
12/06  02:56:14.665    3360        6.078      13.8  WdNisSvc
12/07  11:25:55.746    2852        0.031      13.5  CaptureService_23e9dea
12/07  12:45:06.739    9556        0.016      11.9  AppXSvc
12/07  12:45:22.955    9004        0.016      13.7  LicenseManager
12/07  12:45:23.013    6368        0.047       8.7  ClipSVC
--------------------------------------------------------------------------------
15 services shown (of 71 services in 62 (of 94) processes) at 12:46:23 2023-12-07

As of the build 16 update I get this.

Code:
v:\> sv
Start  Time             Pid       CPU(s)     WS(M)  Name
--------------------------------------------------------------------------------
??????????†??‰†††???†††??†?????†??????††??†††???‹††??‹???????†??????††??†††???‹††??‹??????????????†??‰†††???†††??†???????????????†??'†††???†††??†?????????????????????†??'†††???†††??†????????????????†??'†††???†††??†???????????????†??'†††???†††??†??????†??????††??†††???‹††??‹?????????????†??????††??†††????††?????????????†??????††??†††????††?????????????????†???†††???†††??†?????†??????††??††††??"††??"???????????????†???†††???†††??†???????????????'†??"†††???†††??†??????????†??????††??††††??"††??‰????????†??????††??††††??‰††???????????†??????††??††††??‰††???????????????????"†??‰†††???†††??†???????†??????††??††††???††??????????????????†??????††??††††??‹††???????????????"†???†††???†††??†????????????‰†???†††???†††??†?????????†??????††??†††????††??‰??????†??????††??††††???††??????????†??????††??†††???'††??‰??????????????"†???†††???†††??†????????????"†??'†††???†††??†??????????????‹†??'†††???†††??†????????????†??????††??††††???††??`???????†??????††??†††???"††??‰???????????????†??'†††???†††??†?????????????????????†??‰†††
???†††??†????????†??????††??††††???††????????????????†???†††???†††??†???????†??????††??††††???††??"????????????‹†??‰†††???†††??†?????????????‰†???†††???†††??†??????????????‰†??"†††???†††??†?????????????‰†???†††???†††??†??????????????"†??'†††???†††??†???????????†??????††??††††???††??‹????????????†??????††??††††???††??"??????????†??????††??††††???††??????????????????†??"†††???†††??†??????????????†??'†††???†††??†???????????????†??'†††???†††??†???????†??????††??†††????††??‰???????†??????††??††††??"††??'?????????????????‰†???†††???†††??†?????????????????†??'†††???†††??†????????†??????††??††††??‹†††?"????????????†??????††??††††??'††????????????????????†??'†††???†††??†????????????????????†??"†††???†††??†?????????????"†??‰†††???†††??†?????????????????‰†??‰†††???†††??†??????????????†??????††??††††??"††??‰??????????????‹†??‰†††???††???†??????????????????"†???†††???†††??†???????????????‹†??'†††???†††??†???????†??????††??††††???†††??????????†??????††??††††??‹†††?‰???????†??????††??††††???††??????????????????†??????††??††
††???††??????????????"???????†??'††????††???†????????†??????††??††††???††???????????†??????††??††††???††??`????????????
--------------------------------------------------------------------------------
1 services shown (of 68 services in 59 (of 90) processes) at 12:44:46 2023-12-07

It's a fairly complicated library routine which puts the output of a VB script into an array and processes the array like this.

Code:
:: process each service
:: HTCMD is internal HEAD or TAIL
:: filter is a pipe to grep for specified info
do i=0 to %lastindex by 7 | d:\gnu\sort.exe %sortargs %filter | %htcmd /n %nshow | tee %tmpfile

    set name=%s[%i]        & set /a i+=1    
    set pid=%s[%i]        & set /a i+=1    
    set display=%s[%i]    & set /a i+=1    
    set wmistart=%s[%i]    & set /a i+=1    
    set ktime=%s[%i]    & set /a i+=1    
    set utime=%s[%i]    & set /a i+=1    
    set wset=%s[%i]
    set cpu=%@eval[(%ktime + %utime) / 10000000 =3]
    set workset=%@eval[%wset / 1024**2 =1]
    
    echo %@tformat[%wmistart]%@format[8,%pid]   %@format[10,%cpu]  %@format[8,%workset]  %@format[-%longest,%name]%@if[%verbose == 1, %display,]

enddo
 
The problem seems to be with TAIL. In this command,

Code:
do i=0 to %lastindex by 7 | d:\gnu\sort.exe %sortargs %filter | %htcmd /n %nshow | tee %tmpfile

%htcmd is either TAIL (the default) if HEAD (both internals). If I specify HEAD I get the correct output; with TAIL I don't.

Code:
d:\data\tcclibrary> sv /h
Start  Time             Pid       CPU(s)     WS(M)  Name
--------------------------------------------------------------------------------
12/04  02:45:41.304    1020       28.047      51.1  EFS
12/04  02:45:41.304    1020       28.047      51.1  KeyIso
12/04  02:45:41.304    1020       28.047      51.1  SamSs
12/04  02:45:41.304    1020       28.047      51.1  VaultSvc
12/04  02:45:41.587    1112       14.109      46.8  BrokerInfrastructure
12/04  02:45:41.587    1112       14.109      46.8  DcomLaunch
12/04  02:45:41.587    1112       14.109      46.8  PlugPlay
12/04  02:45:41.587    1112       14.109      46.8  Power
12/04  02:45:41.587    1112       14.109      46.8  SystemEventsBroker
12/04  02:45:41.695    1236       28.844      26.1  RpcEptMapper
12/04  02:45:41.695    1236       28.844      26.1  RpcSs
12/04  02:45:41.714    1284        1.781      18.5  LSM
12/04  02:45:41.852    1584        0.016      12.3  lmhosts
12/04  02:45:41.861    1628        0.016      19.8  NcbService
12/04  02:45:41.862    1636        0.063      16.9  TimeBrokerSvc
--------------------------------------------------------------------------------
15 services shown (of 70 services in 61 (of 95) processes) at 13:09:13 2023-12-07

d:\data\tcclibrary> sv
Start  Time             Pid       CPU(s)     WS(M)  Name
--------------------------------------------------------------------------------
??????????†??‰†††???†††??†?????†??????††??†††????††??‰???????†??????††??†††????††??‰??????????????†??‰†††???†††??†???????????????†??'†††???†††??†?????????????????????†??'†††???†††??†????????????????†??'†††???†††??†???????????????†??'†††???†††??†??????†??????††??†††???‹††????????????????†??????††??†††????††?????????????†??????††??†††????††?????????????????†???†††???†††??†?????†??????††??††††??"††??"???????????????†???†††???†††??†???????????????'†??"†††???†††??†??????????†??????††??††††??"††??‰????????†??????††??††††??"††??‰????????†??????††??††††??‰††???????????????????"†??‰†††???†††??†???????†??????††??††††???††??????????????????†??????††??††††??`††???????????????"†???†††???†††??†????????????‰†???†††???†††??†?????????†??????††??†††???"††??‹??????†??????††??††††???††??????????†??????††??†††????††??‹??????????????"†???†††???†††??†????????????"†??'†††???†††??†??????????????‹†??'†††???†††??†????????????†??????††??††††??"††??`???????†??????††??†††???'††??????????????????†??'†††???†††??†?????????????????????†??‰†††
???†††??†????????†??????††??††††???††????????????????†???†††???†††??†???????†??????††??††††??"††??"????????????‹†??‰†††???†††??†?????????????‰†???†††???†††??†??????????????‰†??"†††???†††??†?????????????‰†???†††???†††??†??????????????"†??'†††???†††??†???????????†??????††??††††???††??‹????????????†??????††??††††???††??"??????????†??????††??††††???††??????????????????†??"†††???†††??†??????????????†??'†††???†††??†???????????????†??'†††???†††??†???????†??????††??†††???‹††??‰???????†??????††??††††??"††????????????????????‰†???†††???†††??†?????????????????†??'†††???†††??†????????†??????††??††††??‹†††?"????????????†??????††??††††??‹††????????????????????†??'†††???†††??†????????????????????†??"†††???†††??†?????????????"†??‰†††???†††??†?????????????????‰†??‰†††???†††??†??????????????†??????††??††††??"††??‰??????????????‹†??‰†††???††???†??????????????????"†???†††???†††??†???????????????‹†??'†††???†††??†???????†??????††??††††???†††??????????†??????††??††††??‹†††?‰???????†??????††??††††???††??????????????????†??????††??††
††??`††??????????????"???????†??'††????††???†????????†??????††??††††??‹††??"????????†??????††??††††???††??`???????????????†??????††??††††??"††??"???????????†??????††??††††???††????????
--------------------------------------------------------------------------------
1 services shown (of 70 services in 61 (of 95) processes) at 13:09:23 2023-12-07
 
Back
Top
[FOX] Ultimate Translator
Translate