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 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
serialize
serialize(1) General Commands Manual serialize(1)
NAME
serialize - force target process to run serially with other processes
SYNOPSIS
command [command_args]
pid]
DESCRIPTION
The command is used to force the target process to run serially with other processes also marked by this command. The target process can
be referred to by pid value, or it can be invoked directly on the command. Once a process has been marked by the process stays marked
until process completion unless is reissued on the serialized process with the option. The option causes the pid specified with the option
to return to normal timeshare scheduling algorithms.
This call is used to improve process throughput, since process throughput usually increases for large processes when they are executed
serially instead of allowing each program to run for only a short period of time. By running large processes one at a time, the system
makes more efficient use of the CPU as well as system memory, since each process does not end up constantly faulting in its working set, to
only have the pages stolen when another process starts running. As long as there is enough memory in the system, processes marked by
behave no differently from other processes in the system. However, once memory becomes tight, processes marked by are run one at a time
with the highest priority processes being run first. Each process will run for a finite interval of time before another serialized process
is allowed to run.
Options
supports the following options:
Indicates the process specified by
pid should be returned to timeshare scheduling.
Indicates the
pid of the target process.
If neither option is specified, is invoked on the command line passed in.
RETURN VALUE
returns the following value:
Successful completion.
Invalid
pid specification, nonnumeric entry, or pid specification is that of a special system process.
Could not execute the specified command.
No such process.
Must be root or a member of a group having the
privilege to execute
ERRORS
fails under the following condition and sets (see errno(2)) to the following value:
The pid passed in does not exist.
EXAMPLES
Use to force a database application to run serially with other processes marked for serialization:
Force a currently running process with a pid value of 215 to run serially with other processes marked for serialization:
Return a process previously marked for serialization to normal timeshare scheduling. The pid of the target process for this example is
WARNINGS
The user has no way of forcing an execution order on serialized processes.
AUTHOR
was developed by HP.
SEE ALSO
setprivgrp(1M), getprivgrp(2), serialize(2).
serialize(1)