IBM Support

Why do I get: ./linperf.sh: line 48: syntax error near unexpected token `$'do\r'`

Question & Answer


Question

I downloaded the linperf.sh script from technote:
"MustGather: Performance, hang, or high CPU issues with WebSphere Application Server on Linux"
https://www.ibm.com/support/pages/node/72419
but when I try and run the script I get following error:
./linperf.sh: line 48: syntax error near unexpected token `$'do\r'`

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSAW57","label":"WebSphere Application Server Network Deployment"},"ARM Category":[{"code":"a8m50000000CdBVAA0","label":"WebSphere Application Server traditional-All Platforms-\u003EHang Performance CPU"}],"ARM Case Number":"TS007505211","Platform":[{"code":"PF016","label":"Linux"}],"Version":"All Versions"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Historical Number

TS005561053;TS007505211

Product Synonym

WebSphere Application Server;WSAS;Liberty

Document Information

Modified date:
17 November 2021

UID

ibm16517102