#!/bin/sh # Show the date a process was started. Technically, we don't actually # print the age, I suppose, but you can get there from here. # # With thanks to the folks at: # https://stackoverflow.com/questions/5731234/how-to-get-the-start-time-of-a-long-running-linux-process PID="${1}" ps -p ${PID} -wo pid=,lstart=,cmd=