I am trying to find out that how many number of threads are currently running or in any other state which is created by POSIX standard in a process.
First I have defined a variable called proc_var of type proc defined in sys/proc.h.Next I open up the dir /proc and per directory wise I do an ioctl... (7 Replies)
Unix gurus,
I have a requirement wherein I want to find the port number for a given process id.
Is it possible? If so how?
TIA,
Regards,
Praveen (3 Replies)
Dear All,
I plan to write a script and in the beginning, I will check if there's any existing previous process running, if YEs, then exit directly, if Not, then continue.
#!/bin/bash
NUM=`ps -ef | grep $0 | grep -v grep | wc -l`
ps -ef | grep $0 | grep -v grep
echo "NUM ==> $NUM"
if... (6 Replies)
Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it
This is how we execute the script (and this is the requirement) ... (2 Replies)
Hi All,
How to get the list of port numbers and it is correspoding proceses id that are currently running on. Please suggest and it is urgent
Thanks. (7 Replies)
Hello Team,
I would like to use a shell script that run each 15 minutes in order to recorder the number of process per user
I request your help in order to build an awk script under Solaris from the following command or similar:
ps -fea -o user | sort | uniq -c | sort -k 2
648 ... (3 Replies)
Hi All,
i am trying to find the Jobss port number(either default port number or any other port number assigned) from the running process id.
But it's giving me multiple port numbers when searching with netstat command. Can someone help me in finding the correct port number from the... (3 Replies)