Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to write data to file with -w option or to log file #11

Open
MilindPurswani opened this issue Oct 3, 2019 · 4 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@MilindPurswani
Copy link
Owner

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.

@MilindPurswani MilindPurswani added the bug Something isn't working label Oct 3, 2019
@MilindPurswani MilindPurswani self-assigned this Oct 3, 2019
@MilindPurswani
Copy link
Owner Author

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.

@MilindPurswani
Copy link
Owner Author

This was caused due to a commit that was made last night covering up the overhead of opening and closing the file e7b323a.

@yashrs
Copy link
Contributor

yashrs commented Oct 4, 2019

You can try https://stackoverflow.com/a/1112350

@MilindPurswani
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants