I am trying to retrieve the time in seconds from the process that started. But I am able to get just the day but not the complete date time. Below is the thing that I made:
ps --user <user Name> -o uid,pid,lstart,cmd:50 --no-heading |
tail -n +2 |
while read PROC_UID PROC_PID PROC_LSTART PROC_CMD; do
echo $PROC_LSTART
done
Thu
Tue
Fri
Thu
Thu
While the lstart should give me something like :
Thu Jan 26 09:00:21 2017