if i run this command
ps aux | grep -ie ff1 | awk '{print $2 , $9 , $(NF-0)}'
i get this result:
7019 12:33 /var/www/html/tv1/video1.m3u8
13374 17:13 /var/www/html/tv1/asdas.m3u8
15001 05:58 /var/www/html/tv1/dfwef.m3u8
15021 05:58 /var/www/html/tv1/werwe.m3u8
15200 11:45 /var/www/html/tv1/2fsdfsf.m3u8
so second word in each line is time when process started so is there a way i can calculate that time with
date +%H:%M - awk '{print $9}'
so i can know how much time each proccess it was running
i want a result like this:
02:20 7019 12:33 /var/www/html/tv1/video1.m3u8
(it means proccess 7019 that starts on 12:33 has been running for 2hours and 20 minutes)