12-27-2007
Welcome to the forum !
There are many threads which discuss about using ps -ef to check whether a process is running or not and to take corresponding action with the output of ps -ef
Just a simple search on it would help you
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am writing a shell script to invoke a C++ program. Before I start the C++ program (oi7loadbalancer), I am checking if the process is already running. I start the process only if it is not already running. I have the following check in my script.
proccount=`ps -f -u $USER_NAME | grep... (8 Replies)
Discussion started by: sim
8 Replies
2. UNIX for Advanced & Expert Users
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 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
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. UNIX and Linux Applications
Hi
I would like to check if an instance of a script is already running.
I've seen many different examples, but I haven't the slightest idea as to how to do this.
Can you please help.
Thank you. (5 Replies)
Discussion started by: ladyAnne
5 Replies
6. UNIX for Dummies Questions & Answers
Hi
What is the best command to check if a particular process is running in a linux server or not
To check any java process, I use the below command.
ps -ef |grep jvm
When I execute the above command, it lists me all the processess . The above command should ideally return only the... (6 Replies)
Discussion started by: vr3w3c9
6 Replies
7. Programming
How to I check if a process is running in C? I'm trying to use ps aux |grep "process name" but failing in doing that. How do I do that?
Thanks, (1 Reply)
Discussion started by: cprogdude
1 Replies
8. 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
9. 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
10. Shell Programming and Scripting
Hi Gurus,
t=`ps -u irb|grep -v grep|grep BSNL_PAYMENT_C`
echo $t
if
then
echo $?
echo "Process Creation is Running ...."
else
echo "Process went down at $dat $tim"
fi
How would i use loop so that the script continously checks for the current status of this process.... (1 Reply)
Discussion started by: ankitknit
1 Replies
LEARN ABOUT DEBIAN
rt-crontool-4
rt-crontool(1) Request Tracker Reference rt-crontool(1)
NAME
rt-crontool - Command-line interface to Request Tracker
SYNOPSIS
# find all active tickets in the queue 'general' and set their priority to 99 if they are overdue:
rt-crontool
--search RT::Search::ActiveTicketsInQueue --search-arg general
--condition RT::Condition::Overdue
--action RT::Action::SetPriority --action-arg 99
--verbose
# Escalate tickets
rt-crontool
--search RT::Search::ActiveTicketsInQueue --search-arg general
--action RT::Action::EscalatePriority
DESCRIPTION
This script is a tool to act on tickets from an external scheduling tool, such as cron.
Security:
This tool allows the user to run arbitrary perl modules from within RT. If this tool were setgid, a hostile local user could use this tool
to gain administrative access to RT. It is incredibly important that nonprivileged users not be allowed to run this tool. It is suggested
that you create a non-privileged unix user with the correct group membership and RT access to run this tool.
OPTIONS
search
Specify the search module you want to use
search-arg
An argument to pass to --search
condition
Specify the condition module you want to use
condition-arg
An argument to pass to --condition
action
Specify the action module you want to use
action-arg
An argument to pass to --action
template
Specify name or id of template(s) you want to use
transaction
Specify if you want to use either 'first', 'last' or 'all' transactions
transaction-type
Specify the comma separated list of transactions' types you want to use
log Adjust LogToScreen config option
verbose
Output status updates to STDOUT
perl v5.14.2 2013-05-22 rt-crontool(1)