User Tools

Site Tools


settings_scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
settings_scripts [2023/03/28 10:18]
angelos
settings_scripts [2023/03/28 10:24]
angelos [Parameters & command line arguments]
Line 32: Line 32:
  
 We would invoke this script by crafting the following URL: We would invoke this script by crafting the following URL:
-http(s)://​pma.core.url/​scripts/​Run?​sessionId=your-session-id&​name=PythonScriptTest&​slide_path=images/​collection1/​slide1.svs&​some_number=10+ 
 +<​nowiki>​http(s)://​pma.core.url/​scripts/​Run?​sessionId=your-session-id&​name=PythonScriptTest&​slide_path=images/​collection1/​slide1.svs&​some_number=10</​nowiki>​ 
 + 
  
 Then PMA.core would extract and validate the values "​images/​collection1/​slide1.svs"​ and "​10"​ and pass them on to the command, by replacing {slide_path} and {some_number} respectively. This would end up looking like this: Then PMA.core would extract and validate the values "​images/​collection1/​slide1.svs"​ and "​10"​ and pass them on to the command, by replacing {slide_path} and {some_number} respectively. This would end up looking like this:
  
-python.exe d:​\scripts\python_test.py -p "​images/​collection1/​slide1.svs"​ -n 10 -i 123+ 
 +''​python.exe d:​\scripts\python_test.py -p "​images/​collection1/​slide1.svs"​ -n 10 -i 123''​ 
  
 After successful execution, the complete output of the command invocation is returned to the client. After successful execution, the complete output of the command invocation is returned to the client.
 +
  
 See also the [[https://​docs.pathomation.com/​pma.core.api/#/​Script/​ExternalScripts_Run|Scripts Run]] API. See also the [[https://​docs.pathomation.com/​pma.core.api/#/​Script/​ExternalScripts_Run|Scripts Run]] API.
settings_scripts.txt · Last modified: 2023/11/22 17:58 by chris