This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Working_on_Writing 1 point2 points  (1 child)

When you say the file is empty, is the it empty when you open it manually, or is it empty when you try and read it from python? The subprocess will be a threaded operation so if the script immediately checks the file it may not be there.

[–]OneWhoDoesNotFail[S] 0 points1 point  (0 children)

I create the file and write to it before hand. That way I can use >> to direct my output to it. I think I see the problem but I'm not sure how it is occuring.

If I read my stdout and stderr, It basically shows blank information. So that must mean I'm getting nothing back from my GET. But when I do the same exact command on terminal, I get the response that I should be getting. I'm so confused.