05-21-2020, 03:04 PM
(This post was last modified: 05-21-2020, 03:05 PM by remkonoteboom.)
The ticket keyword just allows you to reuse login ticket on batch scripts.
The login_code keyword allows you to run as a particular user, however if none is specified, it will run as "admin".
Other than that, if this is run on the TACTIC server, it should just work.
Here is a full script example:
This produces:
The login_code keyword allows you to run as a particular user, however if none is specified, it will run as "admin".
Other than that, if this is run on the TACTIC server, it should just work.
Here is a full script example:
Code:
import tacticenv
from pyasm.security import Batch
from pyasm.search import Search
project_code = "workflow"
Batch(project_code=project_code)
logins = Search.eval("@SOBJECT(login)")
print("logins: ", logins)
This produces:
Code:
python ~/test.py
num jobs: 406