08-17-2008
how to check how long the process has been running.
I have a requirement to check how long a process is running on unix system.If i use ps -ef i am getting the following message
guest 2453638 1998920 0 16:16:05 - 0:00 dsapi_slave 9 8 0
but this is showing only time not the date.Can any one please advice me any script to find out how long this process is running.
Thanks
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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
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
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
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
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
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
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
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
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
LEARN ABOUT HPUX
cdsclerk
cdsclerk(1m) cdsclerk(1m)
NAME
cdsclerk - Manages the interface between clients and the CDS server
SYNOPSIS
cdsclerk [-D] [-w route]
OPTIONS
For debugging use only. Causes the cdsadv clerk process not to fork. Routes serviceability messages.
DESCRIPTION
The cdsclerk command manages the interface between clients and the CDS server.
Privilege Required
You must log in as superuser (root).
NOTES
This command is used by the advertiser on the system where the CDS clerk is running. You should use this command interactively only to do
diagnostic work on the host system.
EXAMPLE
Before you run the following process, make sure that other clerks are not running. To start the cdsclerk process, follow these steps:
Make sure that a CDS server is already running somewhere within the cell. Log in to the system as superuser (root). Log in to DCE as the
machine principal of the local host. Enter the principal name in the format /hosts/hostname/self as shown in the following example command
for a host named orion whose password is smith: # dce_login hosts/orion/self smith Enter the following command to see if the dced process
is already running: # ps
If the dced process appears on the list of active processes, proceed to step 5. If the dced process does not appear on the list of active
processes, enter the following command to start the process: # dced Enter the following command to start the cdsadv process: # cdsadv Enter
the following command with the appropriate arguments to start the cdsclerk process: # cdsclerk
RELATED INFORMATION
Books: OSF DCE Administration Guide
cdsclerk(1m)