05-19-2005
Stopping multiple process on AIX
I'm trying to update a shared library (*.so) in our AIX machine. However, when I tried to delete the old *.so file, I get this error -> Cannot open or remove a file containing a running program. Based on the information I gather from the net, shared libraries are not unloaded (the file remains locked) even after the process using it has exited.
Would any of you know how I could stop all the process that is currently using that shared library for me to udpate that file? I'm currently using the kill -9 <PID> command but it seems that there's a great number of process that uses that file. Hope someone could help me.
10 More Discussions You Might Find Interesting
1. IP Networking
Hi All,
Please explain me when i have to use multiple process and when I have to use Multiple threads? Please give me an example.It will be very helpful for me.
Thanks in advance. (0 Replies)
Discussion started by: ashleykumar
0 Replies
2. AIX
hi,
i am working on aix 5.2, i want to check disk i/o for any running process.
please if anybody can help me.
thanks
Aqeel Anwar (1 Reply)
Discussion started by: system-admin
1 Replies
3. Shell Programming and Scripting
Hello,
I have a process running, for example a "top".
I send it a signal to stop it
kill -s SIGSTOP 3423
It works, but when I want to resume it by
kill -s SIGCONT 3423
It does not work.
Help me please.....
I have Fedora Core 4.
Thank you (0 Replies)
Discussion started by: Nene
0 Replies
4. Shell Programming and Scripting
Hi
I want to stop a process using a shell script. how do i do that?
ie, to simulate ps -ef|grep Process name
get the process id and kill -9 process id
plz help... (4 Replies)
Discussion started by: gopsman
4 Replies
5. UNIX Desktop Questions & Answers
hi all,
I am using red hat AS 4 linux enterprise,i need to run my application such that while its running no other process shuld run all the remaining process should be suspended ,i need to use whole of the process only for that application to run ,can anyone suggest me how to do this.
... (3 Replies)
Discussion started by: srilakshmi
3 Replies
6. AIX
Hi All,
I searched other threads and could not find any relevant post about this.
I searched for process 0 in SUN OS and could find the sched/swapper process listed.
root 0 0 0 Apr 25 ? 0:06 sched
but i couldnt not find the swapper process (PID 0) in AIX. Is that... (4 Replies)
Discussion started by: quintet
4 Replies
7. Shell Programming and Scripting
Hi there, I have an example basic script (below) and ive been trying to figure out how to stop multiple arguments to my options occuring. for example using the example script below I can issue two arguments for, say the --surname option and it will not barf at me (although thats what i want it to... (11 Replies)
Discussion started by: rethink
11 Replies
8. UNIX for Advanced & Expert Users
Hello,
I execute an application on my Unix AIX Server and that one crashes after reading some files. These files are very big (80 Mbytes), the application is a CVS Repository.
I have found with a comparaison on a Solaris Server that there are system limitations on my AIX Server in the... (2 Replies)
Discussion started by: steiner
2 Replies
9. Shell Programming and Scripting
Hello unix forum !
how do i get rid of this while thing ? if started some where by crontab for example.
while ; do ./script > /dev/null ; done &
or for example if in terminal
while ; do ./script ; done &
and the script is outputing and I can't write commands. other... (2 Replies)
Discussion started by: max_475
2 Replies
10. AIX
I check for top 10 cpu consumer
ps auxww |head -10
USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND
root 131076 23,6 0,0 448 448 - A 16:00:59 50:21 wait
root 983070 21,9 0,0 448 448 - A 16:00:59 46:43 waitI try to kill them
sudo... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies
LEARN ABOUT SUNOS
libpctx
libpctx(3LIB) Interface Libraries libpctx(3LIB)
NAME
libpctx - process context library
SYNOPSIS
cc [ flag... ] file... -lpctx [ library... ]
DESCRIPTION
Functions in this library provide a simple means to access the underlying facilities of proc(4) to allow a controlling process to manipu-
late the state of a controlled process.
This library is primarily for use in conjunction with the libcpc(3LIB) library. Used together, these libraries allow developers to con-
struct tools that can manipulate CPU performance counters in other processes. The cputrack(1) utility is an example of such a tool.
INTERFACES
The shared object libpctx.so.1 provides the public interfaces defined below. See intro(3) for additional information on shared object
interfaces.
pctx_capture pctx_create
pctx_release pctx_run
pctx_set_events
FILES
/usr/lib/libpctx.so.1 shared object
/usr/lib/64/libpctx.so.1 64-bit shared object
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcpcu (32-bit) |
+-----------------------------+-----------------------------+
| |SUNWcpcux (64-bit) |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
cputrack(1), intro(3), cpc(3CPC), libcpc(3LIB), proc(4), attributes(5)
SunOS 5.10 22 May 2003 libpctx(3LIB)