- This topic has 1 reply, 2 voices, and was last updated 1 day, 5 hours ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › FABRIC General Questions and Discussion › How to run a background process in a VM
we wrote a utility ( used in our Jupyter notebook) to execute commands in remote VM – see below
manager.executeCommandsParallel(“sudo python3 Basic-Traffic-Generator/TrafficGenerator.py -r &”, “C-4-1-1”, returnOutput=True)
This utility runs a Trafficgenerator python script and waits to receive packets at node C-4-1-1.
I would like to execute this in multiple VMs. So I tried to run it in background, so I can start this utility in multiple nodes. But the cell hangs. Is there a way to resolve this
thanks
I spawn a detatched screen session and execute command inside it. It works for me.