Thanks Mohana. Before you responded I managed to identify the command that is executed - see script below. I am currently trying to work out how to access "run_python_autoshare.sh" on our server.
Martin
{
"name": "auto-share-session",
"description": "Share a subject and session into the central project.",
"version": "auto_share",
"image": "randomid0987/perth_xnat:auto_share",
"type": "docker",
"command-line": "sh run_python_autoshare.sh [SESSION_ID] [PROJECT_ID] [CENTRAL_P_ID]",
"override-entrypoint": false,
"mounts": [],
"environment-variables": {
"XNAT_READER": "xnat_reader",
"DOCKER_GATEWAY": "172.17.0.1",
"XNAT_READERP": "xnat"
},
"ports": {},
"inputs": [
{
"name": "PROJECT_ID",
"description": "Project ID",
"type": "string",
"required": true,
"replacement-key": "[PROJECT_ID]",
"select-values": []
},
{
"name": "SESSION_ID",
"description": "SESSION ID",
"type": "string",
"required": true,
"replacement-key": "[SESSION_ID]",
"select-values": []
},
{
"name": "central-project-id",
"description": "Central Project ID (used if data shared into central project)",
"type": "string",
"default-value": "",
"required": false,
"replacement-key": "[CENTRAL_P_ID]",
"select-values": []
}
],
"outputs": [],
"xnat": [
{
"name": "auto-share",
"description": "Share session from satellite project into central project",
"contexts": [
"xnat:imageSessionData"
],
"external-inputs": [
{
"name": "session",
"description": "session",
"type": "Session",
"required": true,
"load-children": true
}
],
"derived-inputs": [
{
"name": "session-id",
"description": "session ID",
"type": "string",
"required": true,
"provides-value-for-command-input": "SESSION_ID",
"load-children": true,
"derived-from-wrapper-input": "session",
"derived-from-xnat-object-property": "id",
"multiple": false
},
{
"name": "project-id",
"description": "project ID",
"type": "string",
"required": true,
"provides-value-for-command-input": "PROJECT_ID",
"load-children": true,
"derived-from-wrapper-input": "session",
"derived-from-xnat-object-property": "project-id",
"multiple": false
}
],
"output-handlers": []
}
],
"container-labels": {},
"generic-resources": {},
"ulimits": {},
"secrets": []
}