Sponsored Content
Top Forums Shell Programming and Scripting List Process running under current user Post 302953680 by aravindadla on Monday 31st of August 2015 09:53:01 AM
Old 08-31-2015
List Process running under current user

Hi,

i need to list the processes running only under current logged in user.

EX:

Code:
$ 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 /11gaamd01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr listener -inherit
  orauni 29950098        1   0   Jan 14      -  4:39 /11guni01/app/oracle/product/11.2.0/db_1/bin/tnslsnr LISTENER -inherit
  orasas 31326450        1   0   Jan 14      -  7:12 /11gsas01/app/oracle/product/11.2.0/db_1/bin/tnslsnr listener -inherit
  oraaqw 36110420        1   0   Jan 14      -  8:55 /11gaamq01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr listener -inherit

i am looking for output of only the processes running under oraaqw user.

sample output:

Code:
/11gaamd01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr listener -inherit
/11gaamq01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr listener -inherit

please, help me.

Thanks.

Last edited by Scrutinizer; 08-31-2015 at 04:03 PM.. Reason: code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

how to make a current running process ignore SIGHUP signal?

I ask this question since sometimes i run a time-consuming ftp in foreground and forget to use nohup ftp.sh & to put this work background and can still running after i log off. Assume this ftp task have run 1 hour, and still 1 hour time to end, i don't want to abort the ftp, first, i use ctrl+Z... (3 Replies)
Discussion started by: stevensxiao
3 Replies

2. Programming

to find current running process

Hi All, The scenario is like this: There is a process say "A" which create a child process say "B" if some condition is true and process "A" terminates. "B" invokes some C program say "C" using 'execl' function. The job of program "C" is to keep polling the server until the server will be up.... (2 Replies)
Discussion started by: ranjkuma692
2 Replies

3. Shell Programming and Scripting

current running process in shell

hi what is the shell programming code to know the number of processes currently running on the machine & information about those processes. Another one is the configuration and usage of the UNIX file system? requesting all for help. thanks (1 Reply)
Discussion started by: moco
1 Replies

4. UNIX for Dummies Questions & Answers

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 (1 Reply)
Discussion started by: ravind27
1 Replies

5. Shell Programming and Scripting

Displaying current user process

When I typed in ps -a I get this: PID TTY TIME CMD 31799 pts/3 00:00:00 vim 31866 pts/3 00:00:00 vim And to check who is currently logged in, I type who Felix Whoals Tada Whoals Lala Whoals How can I get the user process for all current users who logged in?? I think I need to combine... (14 Replies)
Discussion started by: felixwhoals
14 Replies

6. UNIX for Dummies Questions & Answers

Current Process Running.

Hi all, When I issued command ps -ef|grep Vinay in a UNIX machine, I got the following Vinay 22491 1 255 Jun 18 ? 294248:53 -sh Vinay 26628 1 255 Jun 18 ? 294237:33 -sh Could you tell me what all process is running ? Please explain each of the fields. Thanks... (4 Replies)
Discussion started by: coolbhai
4 Replies

7. UNIX for Dummies Questions & Answers

Running different process from current process?

I have been having some trouble trying to get some code working, so I was wondering...what system calls are required to execute a different program from an already running process? (1 Reply)
Discussion started by: Midwest Product
1 Replies

8. Shell Programming and Scripting

Ps - list where UID is numeric or name and for current user

Hi, 'ps -ef' returns output of the following format UID PID PPID C STIME TTY TIME CMD root 17573 1 0 Sep12 tty6 00:00:00 /sbin/mingetty tty6 hpsmh 18150 14864 0 Sep12 ? 00:00:00 /opt/hp/hpsmh/sbin/hpsmhd -DSSL -f /opt/hp/hpsmh/conf/smhpd.conf root ... (3 Replies)
Discussion started by: ysrini
3 Replies

9. Shell Programming and Scripting

Display current directory for a running process for script

I'm trying to create a ksh script to do the following: 1) Ask the user what process they want to search for. 2) Have the script read the input as a variable and use it to search for the process. 3) Display the current time & date, the working directory of the process, and finally display the... (6 Replies)
Discussion started by: seekryts15
6 Replies

10. Shell Programming and Scripting

Command to know all the Current running process and how to kill

All, 1.What is the unix comand used for all current running process (Including All current running processes Parent ->child->subchild process) 2.If child and subchild processes are running then what is the unix command to kill parent and its all child subchild processes in UNIX. Kindly... (7 Replies)
Discussion started by: skp
7 Replies
asadmin-create-iiop-listener(1AS)				   User Commands				 asadmin-create-iiop-listener(1AS)

NAME
asadmin-create-iiop-listener, create-iiop-listener - adds the IIOP listener SYNOPSIS
create-iiop-listener --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--secure|-s] [--passwordfile filename] [--terse=false] [--echo=false] [--interactive=true] --listeneraddress address [--iiopport iiop_port] [--enabled=true] [--property (name=value)[:name=value]*] listener_ID Adds the IIOP listener. This command is supported in remote mode only. OPTIONS
--user authorized domain application server administrative username. --password password to administer the domain application server. --host machine name where the domain application server is running. --port port number of the domain application server listening for administration requests. --secure if true, uses SSL/TLS to communicate with the domain application server. --passwordfile file containing the domain application server password. --terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well- formatted data for consumption by a script. Default is false. --echo setting to true will echo the command line statement on the standard output. Default is false. --interactive if set to true (default), only the required password options are prompted. --listeneraddress can be the IP address or the hostname --iiopport IIOP port number. --enabled determines whether the IIOP listener is enabled at runtime. --property optional attribute name/value pairs for configuring the resource. OPERANDS
listener_id unique identifier for the IIOP listener to be created. Example 1: Using create-iiop-listener asadmin> create-iiop-listener --user admin --password adminadmin --host fuyako --port 7070 --listeneraddress 192.168.1.100 --iiopport 8080 sample_iiop_listener Created IIOP listener with id = sample_iiop_listener Where: sample_iiop_listener is the IIOP listener created. EXIT STATUS
0 command executed successfully 1 error in executing the command asadmin-delete-iiop-listener(1AS), asadmin-list-iiop-listeners(1AS) J2EE 1.4 SDK March 2004 asadmin-create-iiop-listener(1AS)
All times are GMT -4. The time now is 04:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy