Sponsored Content
Top Forums UNIX for Advanced & Expert Users how to check how long the process has been running. Post 302225928 by Annihilannic on Sunday 17th of August 2008 08:22:59 PM
Old 08-17-2008
"16:16:05" is the start time of the process, so you can subtract that from the current time to calculate how long it has been running.

When the process is more than 24 hours old, this field will contain a date instead of a time. And if, perchance, the process is more than a year old, it will contain the year.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to check since when (for how long) a particular process is running ?

How do I check if a particular process is running from a certain date and time ? (2 Replies)
Discussion started by: hpuxlxboy
2 Replies

2. Shell Programming and Scripting

Check if Process is running

Hi , I have a csh code below which check the process if it's running. Can any expert advise me on the following: 1) what does this notationmean ">!" and how is it different from the append ">" notation ? 2) how does "setenv" work in this code ? # Check whether there is a running... (3 Replies)
Discussion started by: Raynon
3 Replies

3. Shell Programming and Scripting

Monitor a long running process

Gurus, I am writing a shell script that will be used to automate cold backup of an Oracle Database. The database size is around 300G and will take around 5-6 hours to copy. I have finished the script till the copy of the datafiles. Now, I am stuck at the point where I need to monitor the... (4 Replies)
Discussion started by: sunpraveen
4 Replies

4. Shell Programming and Scripting

need to check if the process is running

Hi, I check if the process is running or not using the below. /usr/ucb/ps auxww | grep 109 |grep rmi | awk '{print $2}' 9718 Thus we see 9718 is the PID. It return blank if the process is not running. I need to perform some action if the process is not running and leave it if... (8 Replies)
Discussion started by: shifahim
8 Replies

5. UNIX for Dummies Questions & Answers

How a process can check if a particular process is running on different machine?

I have process1 running on one machine and generating some log file. Now another process which can be launched on any machine wants to know if process1 is running or not and also in case it is running it wants to stream the logs file generated by process1 on terminal from which process2 is... (2 Replies)
Discussion started by: saurabhnsit2001
2 Replies

6. Shell Programming and Scripting

Check for long running process on AIX

I want to write a shellscript which determines if a particular process is long running than my specified threshold time. Eg: My process name is "prsd" and is expected to run for 15 mins and completes. If I set a threshold limit of 1 hour, and how we can the get output of the long running... (4 Replies)
Discussion started by: chandu123
4 Replies

7. AIX

Need to check long running processes on the database server and the os is AIX

Hello, Please help me with a script with which I can check long running processes on the database server and the os is AIX. Best regards, Vishal (5 Replies)
Discussion started by: Vishal_dba
5 Replies

8. Shell Programming and Scripting

Killing the process if running for long time in script

I am running a script which will read the data from fail line by line and call the Java program by providing the arguments from the each line. The Java code is working fast for few records and for some records its getting hanged not providing response for morethan one hour. Currently am... (4 Replies)
Discussion started by: dineshaila
4 Replies

9. Shell Programming and Scripting

Check status of long running multiple curl commands in shell script

I am working on script. it reads a file which contains multiple lines Ex; curl --write-out %{http_code} --silent --output /dev/null http://hostname:port/input=1 curl --write-out %{http_code} --silent --output /dev/null http://hostname:port/input=2 curl --write-out %{http_code} --silent ... (2 Replies)
Discussion started by: oraclermanpt
2 Replies
fsdaemon(1M)															      fsdaemon(1M)

NAME
fsdaemon - pass-through daemon for processing system commands SYNOPSIS
fork] DESCRIPTION
The is a user level daemon that provides a mechanism to pass information between applications and common commands and library functional- ity, allowing certain applications to dynamically add functionality to a system. This is currently only supported for the class of APIs, such as: The API are not yet publicly available, but the commands that use the mentioned APIs depend on this daemon to always be running in the HP- UX environments. Options When is started, indicates whether it should fork a child process and exit the parent process or run just as the parent process and not return. A value of 1 for fork will make fork and exec a child process and then cause the parent process to exit. Kills the current running instance of Tests and waits until is ready to process commands. There is a window where could be started and not yet setup to process commands. The caller should invoke separately with the option to block until is ready to process commands. The entries to start are in the file. These entries be present to ensure correct functionality of the system. They should appear as one of the first entries in placing entries before entries in is dangerous and unsupported. The following are some of the HP-UX commands that use via the above APIs: and RETURN VALUE
: 0 Successful start of If invoked with the option, 0 is always returned. >0 Errno of failure that caused to fail to start. This applies only if was started with the option. ERRORS
If is not running, the errno will be returned by an application that invokes these APIs. If this happens, please see your system adminis- trator to make sure is properly running. EXAMPLES
To start such that it can be invoked without permanently blocking the calling process: To kill the currently running instance of To check to see if the currently running instance of is ready and able to process requests sent to it: The following entries for starting should appear in the file: WARNINGS
The APIs are not yet publicly available, but the commands that use the mentioned family of APIs depend on this daemon to always be running on HP-UX environments. The administrator is not expected to invoke the command from the shell prompt; it should always be started via an entry in This manpage is provided for administrator's trouble shooting purposes, and to allow the system administrator to repair the entries for this daemon in case of corruption. The interface/options provided in this manpage are HP-UX release specific, and may be different in future releases. AUTHOR
was developed by HP. SEE ALSO
fstyp(1M), mkboot(1M), mount(1M), fstatfsdev(3C), fstatvfsdev(3C), statvfsdev(3C), statfsdev(3C), inittab(4). fsdaemon(1M)
All times are GMT -4. The time now is 02:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy