02-08-2011
Q's on Active Process Time
Is it possible to display active processes' Year,Month,Day,Hour,Minute,Second info of process start time ? Preferbly in the format "YYYY/MM/DD HH:MM:SS" ?
I tried to do this with the ps command but it only gets the time or date.
Any help will be greatly appreciated.
Cheers
Steve
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi
i'm running a shell script that checks the amount of cpu idle either using /usr/bin/vmstat 1 2 or sar 1 2 (on unixware) before i run some tests(if cpu idle greater than 89 I run them).
These tests are run on many platforms, linux(suse, redhat) hp-ux, unixware, aix, solaris, tru64.
... (5 Replies)
Discussion started by: OFFSIHR
5 Replies
2. UNIX for Dummies Questions & Answers
how to decrease priority of a particular process in time of process creation...
and also how to decrease priority of a particular process after process creation..
can any one please help me out... (2 Replies)
Discussion started by: Ramkum
2 Replies
3. UNIX for Advanced & Expert Users
Hi All,
I am running the following accounting on one of my executable,
$ accton /home/myexe-acct
$ ./myexe
$ accton
When I check the process timings I get the below result,
Shell process time: 300ms
myexe time: 100ms
I want to know on why the shell(sh) process is taking so much time... (1 Reply)
Discussion started by: santoshbr4
1 Replies
4. Linux
Process start time is not showing the correct time:
I had started a process on Jun 17th at 23:30:00.
Next day morning when I run the command "ps -ef | grep mq", the process is showing the start date of Jun 17th but the start time is 00:16:41
Day/Date is setup correctly on the server.
It... (2 Replies)
Discussion started by: hemangjani
2 Replies
5. UNIX for Advanced & Expert Users
I have some Solaris processes that run weeks at a time that create rather large log files that I would like to archive/compress daily. Instead of stopping the process, what can be done so that the log file is backed up and shrunk, but the process can still log to the open file handle without major... (7 Replies)
Discussion started by: ckmehta
7 Replies
6. Shell Programming and Scripting
Hi ,
Please help me
shell script to determine the active processes on the system which are running since long time (2 Replies)
Discussion started by: itian2010
2 Replies
7. Shell Programming and Scripting
Hello All,
I have a problem calculating the time difference between start and end timings...!
the timings are given by 24hr format..
Start Date : 08/05/10 12:55
End Date : 08/09/10 06:50
above values are in mm/dd/yy hh:mm format.
Now the thing is, 7th(08/07/10) and... (16 Replies)
Discussion started by: smarty86
16 Replies
8. UNIX for Dummies Questions & Answers
What kind of problems can be faced if any session which connects to unix server is open for longer time?
How to find out from how much time that session is idle? :) (2 Replies)
Discussion started by: anandgodse
2 Replies
9. UNIX for Dummies Questions & Answers
We have written a bare bones scheduling app using bash scripts. The input to the scheduler is from a mainframe scheduling tool, and the scripts exit code is returned to the MF. The problem is that every now and again I have a script that does not complete and this is left in my Q. I am in the... (1 Reply)
Discussion started by: Charles Swart
1 Replies
LEARN ABOUT DEBIAN
time_fields_to_filetime
TIME_FIELDS_FROM_FILETIME(3) http://www.synce.org/ TIME_FIELDS_FROM_FILETIME(3)
NAME
time_fields_from_filetime - convert between FILETIME and TIME_FIELDS
SYNOPSIS
#include <synce.h>
void time_fields_from_filetime(const FILETIME *filetime, TIME_FIELDS *timeFields);
bool time_fields_to_filetime(const TIME_FIELDS *timeFields, const FILETIME *filetime);
DESCRIPTION
The time_fields_from_filetime() function converts a FILETIME value into the existing broken down TIME_FIELDS struct pointed to by time-
Fields. time_fields_to_filetime() does the reverse.
typedef struct _TIME_FIELDS {
CSHORT Year; /* Specifies a value from 1601 on. */
CSHORT Month; /* Specifies a value from 1 to 12. */
CSHORT Day; /* Specifies a value from 1 to 31. */
CSHORT Hour; /* Specifies a value from 0 to 23. */
CSHORT Minute; /* Specifies a value from 0 to 59. */
CSHORT Second; /* Specifies a value from 0 to 59. */
CSHORT Milliseconds; /* Specifies a value from 0 to 999. */
CSHORT Weekday; /* Specifies a value from 0 to 6 (Sunday to Saturday). */
} TIME_FIELDS;
RETURN VALUE
The time_fields_to_filetime() function returns FALSE on encountering an invalid value, or TRUE if successful.
SEE ALSO
synce(7)
The SynCE Project 2007-08-26 TIME_FIELDS_FROM_FILETIME(3)