Hack Forums
[Python] multiprocessing help - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] multiprocessing help (/showthread.php?tid=5916499)



multiprocessing help - SIM-2427156 - Dec 7, 2018

Hey, I need help fixing the multiprocessing on a turbo I've been working on. Been giving me a lot of errors but nothing that I can understand to help me debug it.

if anyone has any ideas what's wrong with it let me know
Code
if __name__ == "__main__":
    x = 6
    combo = loginlist[x]
    user, pwd  = combo.split(':')
    target = input("Please enter your target username \n")
    task = Turbo(user, pwd, target)
    if task.login():
        for i in range (2):
            p = multiprocessing.Process(target=task.turbo)
            p.start()



RE: multiprocessing help - Saitama - Dec 8, 2018

what errors are you getting?


RE: multiprocessing help - Ziro - Dec 13, 2018

If you share the errors that you're getting, I'll see if I can help :)


RE: multiprocessing help - Infamia - Dec 14, 2018

only places this can error is:

1) `user, pwd = combo.split(':')`, an unpacking error
2) `task = Turbo(user, pwd, target); if task.login():` user-handled exceptions
3) ` p = multiprocessing.Process(target=task.turbo); p.start()` again user-handled exceptions, provide the code for `task.turbo`