26-05-22 06:41 AM
26-05-22 06:51 AM
26-05-22 07:33 AM
26-05-22 07:39 AM
python --version
26-05-22 03:25 PM
With Python and the script loaded on the individual VMs, I use Utility Environment VBO action Start Process Read Stderr and Stdout.
The process name will be "py" (or, perhaps "python" or "python3". Whichever works on your machine.)
The argument list will start with the path of the script (including the script name) and space delimited arguments required to run the script.
------------------------------
Steven Browning
Application Development Specialist
Accenture
America/Chicago
------------------------------
13-06-22 01:27 PM
13-06-22 03:06 PM
Hello World.py
and the argument was Hi everyone
then I would be setting the value of ScriptNameAndArguments data item as follows: "Hello World.py" "Hi everyone"
sys
library to read arguments from command line which you can import in your script using the import sys
keyword . Once the library has been imported, we can use the object sys.argv which represents the list of arguments being sent out via command line.print(sys.argv[1] + sys.argv[2])
import sys
a = int(sys.argv[1])
b = int(sys.argv[2])
print(a+b)
31-08-22 01:31 PM
10-09-22 04:12 PM
Hi Eugene,
Here where I have indicated Script File Name & Arguments, there just pass the script name ending with .py extension that's all. If let say I wont have any argument written in my above shown example then ideally my command would look like this:
"C:\Users\DevneetMohanty\AppData\Local\Programs\Python\Python310\python.exe" "addNumbers.py"
19-11-22 09:08 PM