in reply to Linux Process Start Time

$^T
$ perl -le'print "".localtime($^T)' Mon Jul 27 12:16:06 2009 $ perl -le'print "".localtime($^T)' Mon Jul 27 12:16:07 2009 $ perl -le'print "".localtime($^T)' Mon Jul 27 12:16:08 2009 $ perl -le'print "".localtime($^T)' Mon Jul 27 12:16:09 2009

Update: Oops! Nevermind. You want to know how long *another* process has been running.

Replies are listed 'Best First'.
Re^2: Linux Process Start Time
by alexm (Chaplain) on Jul 27, 2009 at 22:33 UTC

    In this case, the trick would work if the rsync command was run from a Perl script. Moreover, alarm could also be used to set a timeout (this has saved my day several times).