I have four different programs running which is started using a single python program.
import os                                                                       
from multiprocessing import Pool 
import sys   
processes = ('p1.py', 'p2.py', 'p3.py','p4.py')
def run_process(process):                                                             
    os.system('python3 {}'.format(process)) 
pool = Pool(processes=4)                                                        
pool.map(run_process, processes)
currently iam getting the log of all programs in a single file using nohup pmain.py>test.log
But how can i get four different logs of p1,p2,p3 and p4 respectively in different log files.
 
    