import os
import time
import datetime
month_arr ={'Jan':1, 'Feb':2, 'Mar':3, 'Apr':4, 'May':5, 'Jun':6, 'Jul':7, 'Aug':8, 'Sep':9, 'Oct':10, 'Nov':11, 'Dec':12}
#os.system('kill -9 2383')
output = os.popen("ps aux | grep S|awk '{print $2,$11,$12}'").read().split('\n')
for command_line in output:
com_arr = command_line.split(' ')
if(len(com_arr)==3 and com_arr[0].isdigit()):
#print(com_arr);
pid_str = com_arr[0]
com_str = "ps -p " + pid_str + " -o lstart | grep -v \"START\""
#print(com_str)
pid_start_time = os.popen(com_str).read()
pid_time_arr = pid_start_ti
import time
import datetime
month_arr ={'Jan':1, 'Feb':2, 'Mar':3, 'Apr':4, 'May':5, 'Jun':6, 'Jul':7, 'Aug':8, 'Sep':9, 'Oct':10, 'Nov':11, 'Dec':12}
#os.system('kill -9 2383')
output = os.popen("ps aux | grep S|awk '{print $2,$11,$12}'").read().split('\n')
for command_line in output:
com_arr = command_line.split(' ')
if(len(com_arr)==3 and com_arr[0].isdigit()):
#print(com_arr);
pid_str = com_arr[0]
com_str = "ps -p " + pid_str + " -o lstart | grep -v \"START\""
#print(com_str)
pid_start_time = os.popen(com_str).read()
pid_time_arr = pid_start_ti