Bug fix for application that parses pslist
$15-20 USD
$15-20 USD
Paid on delivery
I have a vbs which parses the output of pslist and alerts if conditions are met.
There are two bugs which i'd like fixed:
1 - one flag is always evaluated even if not listed on command line
2 - It fails if the name of a process is too long because the columns become offset.
## Deliverables
Two bugs:
1 - if /cpuratio not listed as flag script still tries to evaluate it
2 - If a process is too long the script crashes:
Process information for failing pc
Name Pid Pri Thd Hnd Priv CPU Time Elapsed Time
Idle 0 0 4 0 0 842:16:46.054 0:00:00.000
System 4 8 170 669 184 0:35:02.144 220:06:57.848
smss 360 11 3 35 552 0:00:00.046 220:06:57.848
csrss 604 13 9 674 3388 0:00:05.397 220:06:46.070
wininit 672 13 3 82 1644 0:00:00.109 220:06:44.400
services 732 9 7 258 6404 0:00:08.954 220:06:44.276
lsass 748 9 8 913 9112 0:00:25.318 220:06:44.166
lsm 756 8 10 257 3684 0:00:02.028 220:06:44.166
svchost 896 8 11 378 5508 0:00:46.176 220:06:43.948
svchost 972 8 8 336 5476 0:00:17.144 220:06:43.730
svchost 244 8 18 537 22608 0:00:13.525 220:06:43.698
svchost 372 8 21 550 8420 0:00:11.746 220:06:43.667
svchost 616 8 35 1416 38876 0:00:29.686 220:06:43.652
svchost 1084 8 30 892 15200 0:00:06.052 220:06:43.433
svchost 1192 8 25 742 34208 0:00:18.049 220:06:43.371
svchost 1340 8 18 319 11644 0:00:07.846 220:06:43.152
ekrn 1500 8 18 334 75704 0:35:03.579 220:06:42.965
IPROSetMonitor 1584 8 4 66 1776 0:00:00.000 220:06:42.778
vsnapvss 1764 8 4 72 1136 0:00:00.000 220:06:42.466
ShadowProtectSvc 1796 8 2 41 3708 0:00:00.046 220:06:42.450
ShadowProtectSvc 1868 8 7 2342 11164 0:00:00.811 220:06:42.435
svchost 2508 8 5 103 2600 0:00:00.327 220:06:40.081
svchost 2640 8 13 340 69452 0:04:28.087 220:06:36.168
svchost 2944 8 16 272 6844 0:01:00.793 220:04:40.692
csrss 2312 13 11 550 3244 0:00:40.763 220:00:18.319
winlogon 1848 13 4 296 5412 0:00:00.234 220:00:18.272
taskhost 3032 8 10 227 9568 0:00:01.076 220:00:08.580
dwm 2708 13 3 104 8236 0:03:10.914 219:59:42.487
explorer 1260 8 31 1133 73828 0:31:36.488 219:59:42.455
RAVCpl64 1432 8 11 257 10644 0:00:01.170 219:59:42.112
egui 1992 8 6 138 4032 0:00:00.546 219:59:42.096
AnyDVDtray 1040 13 9 350 22220 0:00:29.905 219:59:41.940
Launchy 1516 8 5 454 12588 0:11:46.559 219:59:41.925
VCDDaemon 3260 8 3 92 1632 0:00:00.015 219:59:41.753
jusched 3268 8 7 217 3348 0:00:01.388 219:59:41.737
ADvdDiscHlp64 3320 8 1 41 2732 0:00:00.000 219:59:12.190
conhost 3476 8 1 34 1452 0:00:00.000 219:59:12.187
OSPPSVC 4416 8 3 142 3228 0:00:00.514 148:34:35.930
spoolsv 2504 8 12 325 9556 0:00:00.982 148:24:04.350
bomgar-scc 4992 8 6 178 3092 0:00:00.046 148:16:50.879
SearchIndexer 4780 8 15 1010 53396 0:02:54.409 148:07:59.893
taskhost 2024 8 7 282 8476 0:00:00.124 146:26:44.149
AAM Updates Notifier 1460 6 8 279 7596 0:00:03.244 143:06:55.751
UsbClientService 3112 8 3 84 1492 0:03:53.642 132:48:35.557
DSAssistant 3132 8 7 544 31596 0:00:06.661 132:48:30.924
newsLeecher 880 8 41 463 85612 4:31:11.044 106:18:29.838
LTSVC 3888 8 19 685 75908 0:00:50.762 86:13:37.787
LTTray 3408 8 14 470 46896 0:00:01.232 86:12:56.797
LTSvcMon 2836 8 8 368 32444 0:00:02.152 86:12:44.714
Juice 4704 8 5 312 50640 0:04:16.122 72:42:27.370
csrss 3084 13 11 84 39344 0:00:00.280 50:16:37.529
winlogon 3904 13 3 93 3032 0:00:00.234 50:16:37.512
LogonUI 4932 13 7 192 16352 0:00:00.140 50:16:35.517
bomgar-scc 3116 8 7 419 8296 0:00:04.742 50:16:35.381
rdpclip 4788 8 7 160 2584 0:00:00.062 50:16:34.705
cmd 3280 8 2 104 5344 0:00:00.187 0:07:45.519
conhost 2748 8 2 59 2280 0:00:00.436 0:07:45.517
taskmgr 4636 13 6 143 4124 0:00:03.463 0:06:31.200
notepad 4768 8 1 73 2308 0:00:00.187 0:03:09.268
SearchProtocolHost 3428 4 16 595 7524 0:00:00.140 0:02:37.917
SearchFilterHost 1324 4 3 81 2076 0:00:00.031 0:02:37.889
pslist 3308 13 1 145 2348 0:00:00.078 0:00:00.084
killing "aam updates notifier" process fixes it, so I assume long process name is breaking the script.
Project ID: 3699288
About the project
2 proposals
Remote project
Active 12 yrs ago
Looking to make some money?
Benefits of bidding on Freelancer
Set your budget and timeframe
It's free to sign up and bid on jobs
2 freelancers are bidding on average $8 USD for this job
$10 USD in 2 days
5.0 (4 reviews)