07-05-2007
How to check the status of the processes running for the current user?
Hi All,
I am new to unix. Can anyone tell me "How to check the status of the processes running for the current user?"
Regards,
Ravindaran S
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am trying to write a script, which queries a db to get the names of processes, stores it in a file and then checks if that process is running on a remote server. However I am not getting it right, could anyone help me out.
#!/bin/sh
echo "select Address from Device where Cust =... (5 Replies)
Discussion started by: amitsayshii
5 Replies
2. Shell Programming and Scripting
Good day
I am fairly new to Shell Scripting.
I want a script to check if a process is up by checking the process's PID and then return a value for when it's running which would be 0. If it isn't running it should give any other value that 0.
Any Help is appreciated
Regards (9 Replies)
Discussion started by: 1nsyz1on
9 Replies
3. UNIX for Dummies Questions & Answers
Ok, so I know there's a way to do this, but I've been trying to find out all afternoon with no luck. I think it should print out something like this:
1 bin
2 daemon
6 duo
Where the numbers on the left are the number of processes being run by the user whose name is listed on the right. Is... (4 Replies)
Discussion started by: Duo11
4 Replies
4. Linux
Hello,
i allready search on google und here in the local Forum, but can't found something.
I need a query in php, that check whether a process (script) is running or not. Like this:
php query: /usr/bin/Script01 >> if runnig, then: "Script01 is Online", if not "Script01 is Offline"
I... (2 Replies)
Discussion started by: ProTechEx
2 Replies
5. 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
6. Shell Programming and Scripting
Hi,
i need to list the processes running only under current logged in user.
EX:
$ whoami
oraaqw
$ ps -ef | grep tnslsnr
oraaqw 11403300 19267592 0 09:14:47 pts/3 0:00 grep tnslsnr
oraaqw 15794208 1 0 Jan 14 - 11:59... (6 Replies)
Discussion started by: aravindadla
6 Replies
7. Shell Programming and Scripting
I want to check how many processes are running with same names and get their respective counts.
ps -ef|grep -Eo 'process1|process2|process3| '|sort -u | awk '{print $2": "$1}'
Output would look like :
$ ps -ef|grep -Eo 'process1|process2|process3| '|sort | uniq -c | awk '{print $2":... (8 Replies)
Discussion started by: simpltyansh
8 Replies
8. 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
9. UNIX for Beginners Questions & Answers
HI
can someone help me to check the process running more than 2 hours.
I have the below command which shows the time and process id, however, I only need the processes running more than 2 hours. (8 Replies)
Discussion started by: Vinod
8 Replies
10. UNIX for Beginners Questions & Answers
Hello Guys,
I need some help to find out if processes are running on remote server or not. I could do 'ssh' to do that but due to some security reasons, I need to avoid the ssh & get result from remote server.
Could you please suggest some that can be done without ssh or similar sort of... (8 Replies)
Discussion started by: UnknownGuy
8 Replies
LEARN ABOUT SUNOS
th_manage
th_manage(1M) System Administration Commands th_manage(1M)
NAME
th_manage - manage the fault injection test harness
SYNOPSIS
th_manage name instance command
th_manage path command
DESCRIPTION
th_manage applies the action specified by command to the instance specified by instance of the driver specified by name (or the driver
instance specified by path). The driver instance must be running fault injection specifications (errdefs) defined by th_define(1M).
th_manage supports several commands that operate on the driver instance specified by name and instance (or path). The commands are:
broadcast Awaken all th_define processes, causing them to display their current status and exit if the errdef is now defunct (that
is, if count, failcount , and acc_chk are all zero).
clear_acc_chk Awaken all th_define processes. If count and failcount are already zero, then set acc_chk to zero, so that th_define exits
once it has displayed its status.
clear_errdefs Awaken all th_define processes. count, failcount and acc_chk are all set to zero so that all th_define commands exit once
they have displayed their status.
clear_errors Awaken all th_define processes. If count is already zero, set failcount and acc_chk to zero, so that th_define exits once
it has displayed its status.
get_handles List all the access handles.
start Begin or resume execution of all errdefs.
stop Suspend all errdefs for this name and instance (or path).
EXAMPLES
Example 1: Useful Commands
To begin the tests, enter:
# th_manage foo 0 start
To check the status of the errdefs, enter:
# th_manage foo 0 broadcast
This causes each th_define process to print out its current status.
If the driver has reported a fatal error, you can take the driver offline using libdevice, clear the error condition by entering:
# th_manage foo 0 clear_acc_chk
or
# th_manage foo 0 clear_errors
and bring the driver online again using libdevice.
To terminate testing, enter:
# th_manage foo 0 clear_errdefs
SEE ALSO
th_define(1M)
SunOS 5.10 4 Jan 2001 th_manage(1M)