Release : 12.0
Component : ESP Workstation Server
The ESP Workstation Server needs to have the WEBPORT enabled to received the command. For more information on enabling the WEBPORT see the additional information.
Below is a Python script to issue commands in ESP Workstation Server.
******************************************************************************
import requests
from requests.auth import HTTPBasicAuth
data={
"info":{
"status":"req",
"cont":"eom",
"type":"command"
},
"data":{
"request":"AJ MYJOB.TEST HOLD APPL(TEMPLATE.399"
}
}
x = requests.post(
url = "http://<hostname>:####/command",
auth=HTTPBasicAuth('<user id>','<password>'),
json=data
)
print(x.text)