Syborg
Syborg copied to clipboard
Unable to write data to file with -w option or to log file
It seems that whenever a file is not closed properly and the script is terminated with with ctrl+z
, the script gets killed but python still runs in the background. The file variables are not destroyed thereby new scripts cannot access old files generated for logging and writing data.
I suggest for now the best way to ensure that required files are generated, we can simply execute
killall python3
This is a temporary fix and a permanant fix will be deployed soon.
This was caused due to a commit that was made last night covering up the overhead of opening and closing the file https://github.com/MilindPurswani/Syborg/commit/e7b323a6f02a2aa27beb867fd7c48b8c2541dadc.
You can try https://stackoverflow.com/a/1112350
As always, that's a good observation @yashrs. We should let the script run its course and focus on capturing such events. However, I am not sure if the same is applicable to ctrl + z
Thanks,
-Milind