How to Execute Python Script check_esh.py?
Not able to run python script check_esh.py.
This issue can be re-generated by following:
- First navigate into the /usr/sap/<TREX-SID>/TRX<INstance-NR> folder
- Now run the TREXSettings.sh.
- The system gives a message which says that it is not recognised as internal or external commands.
SOLUTION
Please follow the steps below in order to execute python script check_esh.py:
Executing Python script check_esh.py on Linux Operating System
- First login into the TREX as <sid>adm.
- Then please unpack the script to the /usr/sap/<sid>/trxnn/exe/python_support directory from SAP document 2227741 - TREX 710: checking the TREX for the Enterprise/embedded Search scenario.
- Now navigate to the /usr/sap/<TREX-SID>/TRX<INstance-NR> folder.
- Please run TREXSettings.sh.
- And now please switch into /usr/sap/<TREX-SID>/TRX<Instance-NR> /exe/python_support.
- Now you can execute python script check_esh.py.
Executing Python script check_esh.py on Windows Operating System
- First, start the TREXConsole.bat from D:usrsap<TREX-SID>TRX<Instance-NR>. The TREXSettings.bat will be executed automatically.
- Now please unpack the script to the python_supports directory from SAP document 2227741 - TREX 710: check of the TREX settings for the Enterprise/embedded Search scenario.
- Then you have to type python check_esh.py (or provide path to this script, i.e. python <D>:temppython_scriptscheck_esh.py).