Open nstudach opened 6 years ago
@britram any ideas?
would be difficult for me to guess what is happening here without standing up the full stack myself, which I don't have cycles to do.
Have not memorized the subprocess package, but I'm not sure Popen is what you want to do here: could canid be blocking because nobody is reading its output?
Try running a standalone instance of canid somewhere, and pointing hellfire at that, as opposed to integrating it into your toolchain, and seeing if the problem persists.
Try running a standalone instance of canid somewhere, and pointing hellfire at that, as opposed to integrating it into your toolchain, and seeing if the problem persists.
This solves the problem. Well not quite, but the reason is clear know. While Popen keeps canid running, the subprocess.call of hellfire terminates canid.
I am sure there is a easy enough solution for this. Thanks
Update: I assumed wrong. Cause is still unknown
I tried the following:
starting manually = Connect via SSH, enter command.
In the python script first canid is started with subprocess.Popen to keep it running. Then Hellfire is started with subprocess.call Both have environmet set to PATH.
The problem is that Hellfire is not seeing canid it seems. When running the script localy Hellfire works as sexpected.
The stderr: (helf.txt)