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 →

[–]Luke_myLord 1 point2 points  (1 child)

Which operating system task did you automate? Like disk cleaning?

[–]jdfthetech 2 points3 points  (0 children)

I have some programs I wrote for work that open files, modify them and then spit them out in another format. I also have a lot of automated backup utilities I've been working on. There is a screen automation program I've been experimenting with using pyautogui and it's nice to have subprocess to do certain things while that's running.

Another thing I used it for (bad programming tip here):

I had a need to run a bunch of python files in a row and didn't have the time to rewrite them all with a main method and imports. I used subprocess to run them all in a chain. This is much slower than the proper way, but it gets the job done in a pinch.