Show start time and runtime of a process
since when is this process running | how long has the process been running | process start time linux | is the script hanging for long | ps | runtimeps -o pid,user,lstart,etime,cmd -p 1234lstart prints the exact start time, etime the elapsed time in the format [[days-]hours:]minutes:seconds. This tells whether a PHP or backup process belongs to a current run or has been hanging for days. Multiple PIDs are separated by commas.
Note: ps -eo pid,etimes,cmd --sort=-etimes | head shows all processes sorted by runtime.
Also searched as
- since when is this process running
- how long has the process been running
- process start time linux
- is the script hanging for long