Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import subprocess
- def main():
- with open("log.txt", "w") as logfile:
- f1(logfile)
- f2(logfile)
- def f1(logfile):
- subprocess.Popen(["ls", "-l"], stdout = logfile)
- def f2(logfile):
- subprocess.Popen(["ls", "-s"], stdout = logfile)
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement