Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Linux Process Start Time

by ikegami (Patriarch)
on Jul 27, 2009 at 16:15 UTC ( [id://783590]=note: print w/replies, xml ) Need Help??


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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://783590]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-29 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found