def a(): c = input('Your number( what task do you want to do): ') if c == '1': import task1 task1.main() a() elif c == '2': import task2 task2.main() a() elif c == '3': import task3 task3.main() a() else: exit()
def process1(): from task1 import main print("ID of process running process1: {}".format(os.getpid())) main(START + 1, url)
def process6(): from task6 import main print("ID of process running process6: {}".format(os.getpid())) main(START + 6, url)
def process5(): from task5 import main print("ID of process running process5: {}".format(os.getpid())) main(START + 5, url)
def process4(): from task4 import main print("ID of process running process4: {}".format(os.getpid())) main(START + 4, url)
def process3(): from task3 import main print("ID of process running process3: {}".format(os.getpid())) main(START + 3, url)
def process2(): from task2 import main print("ID of process running process2: {}".format(os.getpid())) main(START + 2, url)
def fetch(): task1.main() return 'fetch success'