[dtrace-discuss] How to get date and time
Chip Bennett
cbennett at laurustech.com
Tue Jan 16 19:45:56 PST 2007
Arun.
How about this:
#pragma D option quiet
proc:::exec-success
/ execname == "myprog" /
{
printf ("Program %s started as PID %d at %Y by user %d\n", execname,
pid, walltimestamp, uid);
}
Chip
Arun wrote:
> How can you get the date and time, when a particluar process starts running, along with the user name.
> Pls help me out in this regard.
>
> Arun DK
>
>
> This message posted from opensolaris.org
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org
>
More information about the dtrace-discuss
mailing list