Sponsored Content
Top Forums Shell Programming and Scripting Check for long running process on AIX Post 302876072 by chandu123 on Thursday 21st of November 2013 02:38:14 PM
Old 11-21-2013
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.

Code:
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 process "prsd" assuming it is running more than 2 hours.

Please help. Thanks in advance.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

check process running

I have this script: ------------------------------------------------------- #!/bin/ksh # if ] || ] then echo "Executing main_load.sh script" /usr1/psc_load/jobs/cron/main_load.sh "ods" else echo "File not found, do nothing" fi exit 0 ... (4 Replies)
Discussion started by: rose1207
4 Replies

2. UNIX for Advanced & Expert Users

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... (2 Replies)
Discussion started by: ukatru
2 Replies

3. 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

4. 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

5. 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

6. 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

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
FAXQCLEAN(8)						      System Manager's Manual						      FAXQCLEAN(8)

NAME
faxqclean - HylaFAX queue cleaner process SYNOPSIS
/usr/sbin/faxqclean [ options ] DESCRIPTION
faxqclean is a program that processes completed HylaFAX jobs and expunges unreferenced document files. This program is intended to be invoked by cron(8) on behalf of the super user (i.e. root) one or more times a day. For example, the following crontab entry might be set- up for root to run faxqclean each hour. 0 * * * * /usr/sbin/faxqclean When faxqclean is run it scans the doneq subdirectory in the HylaFAX spooling area and process each job according to the doneop field spec- ified in the job description file; c.f. sendq(5). Jobs that are marked for removal are purged and references to documents are removed. Jobs that are marked for archival may be archived depending on the options supplied on the command line. After scanning for completed jobs faxqclean scans the docq subdirectory and builds up a table of document files. Files that are not refer- enced by any job and that are older than a specified threshold are removed. OPTIONS
-a Enable job archiving support. -A This option forces archiving even if 'doneop' in the queue file is not 'archive', i.e. even if the user submitted the job without specifying the -A flag to sendfax -j secs Set the job age threshold (in seconds) that controls how long jobs may reside in the doneq directory before being processed. By default this value is 15 minutes (15*60 = 900 seconds). -d secs Set the document age threshold (in seconds) that controls how long unreferenced files may reside in the docq directory before being removed. By default this value is 1 hour (60*60 = 3600 seconds). -n Do not carry out any work; just show what would be done. This option is useful together with the -t option for debugging. -q dir The specified directory is treated as the spooling area. The default spooling area, /var/spool/hylafax, is defined at the time the software is built. -t Trace in great detail exactly what faxqclean is doing. Messages are sent to the standard output. -v Print messages on the standard output about jobs removed or archived and about document files removed. FILES
/var/spool/hylafax/doneq directory to scan for completed jobs /var/spool/hylafax/docq directory to scan for unreferenced documents /var/spool/hylafax/archive directory where archived jobs are placed Consult hylafax-server(5) for a complete discussion of the structure and content of the spooling area. SEE ALSO
faxq(8), hylafax-server(5), sendq(5), doneq(5), archive(5). March 14, 1996 FAXQCLEAN(8)
All times are GMT -4. The time now is 05:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy